Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to set HSE bypass bit (HSEBYP) in RCC_CR register #481

Open
chrisegerer opened this issue Feb 6, 2024 · 1 comment
Open

Comments

@chrisegerer
Copy link

On the STM32F1 series, the HSE clock can be generated either from external crystal or an external clock. If an external clock source is used, the HSEBYP bit must be set in the RCC_CR clock control register (see chapter 7.2.1 in STM32F1 reference manual). This is a common setup on ST's Nucleo dev boards, where the external clock is provided by the integrated ST-LINK debugger probe.

Currently, the stm32f1xx-hal does not allow to set the HSEBYP bit. This limits the clock setup to only use the HSI clock. Other STM32 HALs implement setting this bit.

@chrisegerer
Copy link
Author

Implemented in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant