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

HSE Predivider #448

Open
agrif opened this issue Oct 4, 2022 · 0 comments
Open

HSE Predivider #448

agrif opened this issue Oct 4, 2022 · 0 comments

Comments

@agrif
Copy link

agrif commented Oct 4, 2022

I'm trying to use this crate with an STM32F103CBT6 board that uses a 16MHz HSE oscillator. In C-land, I use the HSE predivider to bump that down to 8MHz, and as far as I know, this is the only method available to have both a 72MHz SYSCLK as well as the required 48MHz USB clock.

In STM32CubeMX, the HSE predivider is here (and called "HSE Prediv"):

2022-10-03_20-00-22

It doesn't look like this crate supports setting this predivider at all. In get_clocks(), the value for SYSCLK is calculated using the HSE, and possibly the PLL multiplier, but not any divider.

Is this reading correct? And can support for the HSE predivider be added?

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