cancel
Showing results for 
Search instead for 
Did you mean: 

Tell CubeMX not to generate: PeriphCommonClock_Config(); and to leave clock config in MSP of the peripheral HAL

sdtbb
Associate II

For background see:  https://community.st.com/t5/stm32cubemx-mcus/stm32cubemx-6-2-1-for-nucleo-h745zi-q-doesn-t-generate/m-p/226159/highlight/true#M10675

In many embedded systems most peripherals are off most of the time, for power saving, and they are enabled only when needed.  When CubeMX moves peripheral clock configuration from the MSP file of the HAL peripheral to PeriphCommonClock_Config() it makes this behavior harder to achieve.  Is there an option to tell CubeMX to leave clock configuration in the HAL MSPs rather than creating the shared function ?

0 REPLIES 0