-
Notifications
You must be signed in to change notification settings - Fork 2k
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
cpu/stm32f2f4f7: expose clock configuration in kconfig #15632
cpu/stm32f2f4f7: expose clock configuration in kconfig #15632
Conversation
0ee99c6
to
70f9700
Compare
9c137b6
to
b8e6d75
Compare
@leandrolanzieri are you ok with the latest changes ? @benpicco if possible, can you test this PR on the weact-f4xx boards ? |
979cf83
to
542447d
Compare
squashed |
ping! |
weact-f411ce
after a
|
Thanks, so something is wrong... |
I just looked at it and I don't understand the problem. All values seems correctly computed in autoconf.h:
More importantly, if PLLQ was completely wrong, the USB wouldn't work at all since it's used as the 48MHz clock source. |
I found the issue! Now I'm including
either way. |
542447d
to
551eb80
Compare
rebased to include the latest pr checks. |
Contribution description
This PR models the clock configuration of STM32 F2, F4 and F7 to Kconfig.
Normally all specific cases are handled but care must be taken with the boards that have a custom HSE (e.g not 8MHz):
Testing procedure
menuconfig
target (enable PLL custom configuration, save, build, try other clock sources, etc)Apply the following patch:
nucleo-f410rb
stm32f429i-disc1
also tested HSE/HSI16 sources and all worked as expected.
nucleo-f207zg
nucleo-f767zi
stm32f723e-disco
Issues/PRs references
Ticks an item in #14975