dynamic clocks
Posted: Sat Mar 15, 2025 1:23 pm
I'm interested in support for changing the system clock dynamically (esp. in the stm32l4) it appears this is a topic that has been considered before and I found the following hal define: HAL_LLD_USE_CLOCK_MANAGEMENT, but I'm not sure if changing the system clock is supported either in the stm32l4 or at all.
My application (sub-gram data loggers of song birds, or tags) has two "modes" -- connected through swd to a configuration/download application, and running free. The swd connect happens under reset, so there's an opportunity at that point to choose a clock configuration before initialization begins (i.e by checking a value set by the application) and it might be simpler than the general case. In my earlier tags, clock speed wasn't really an issue, but newer tags have an external flash download speeds are an issue and might be improved by faster SPI speeds.
Thoughts? Suggestions?
My application (sub-gram data loggers of song birds, or tags) has two "modes" -- connected through swd to a configuration/download application, and running free. The swd connect happens under reset, so there's an opportunity at that point to choose a clock configuration before initialization begins (i.e by checking a value set by the application) and it might be simpler than the general case. In my earlier tags, clock speed wasn't really an issue, but newer tags have an external flash download speeds are an issue and might be improved by faster SPI speeds.
Thoughts? Suggestions?