Replies: 1 comment 1 reply
-
I've researched some MCUs since then and it seems that this suggestion was wrong. At least in H5 if PLL input frequency is less than 2MHz PLL multiplier cannot be higher than 420 and PLLP must be at least DIV2 or higher so it could not reach rated 250MHz. It maybe compatible with other MCUs but in STM32duino Nucleo boards are grouped into 32/64/144 variants so only boards equipped with specific MCU among them I thought it would be difficult to increase PLLM options. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Suggestion
Do you I think good idea to make PLLM configurable from Arduino IDE menu?
This allows clock source to be flexibly configured.
For example, my recent favorite "Nucleo-H563ZI" board has HSE selected as default clock source.
Among them, you can use 8 MHz ST-LINK MCO (default), 25 MHz on-board crystal, or you can prepare and connect your own favorite crystal.
I want to take advantage of clock source flexibility that board provides.
But I don't want things to get too complicated.
The key part of this suggestion, fix PLL input frequency to 1 MHz by set PLLM to same value as HSE input frequency (MHz).
The PLL output frequency is PLLN value (MHz), and even if crystal is changed, frequency ultimately supplied to component can be fixed.
Implementation Example
Note! This is just conceptual code, so there may be mistakes.
boards.txt
platform.txt
compiler.c.flags={compiler.extra_flags} -c {build.flags.optimize} {build.flags.debug} {build.flags.pllm}
variant_NUCLEO-H563ZI.cpp
Beta Was this translation helpful? Give feedback.
All reactions