2025-01-14 04:49 AM - edited 2025-01-14 06:03 AM
I think it's a common scenario to have (at least some) peripherals which are not enabled until needed?
Or, perhaps, just configured at start-up, but not enabled until actually needed.
eg, an RTC alarm.
But CubeMX doesn't seem to support this:
Or have I missed something/?
(none of the available tags seems appropriate, so 'Bug Report' chosen as least inappropriate. I'm using F0, but this seems to be general Cube MX behaviour - not specific to any series)
Solved! Go to Solution.
2025-01-14 06:05 AM
STM2CubeMX Project Manager Advanced Settings has "Do not generate function call" options for the various _Init functions.
hth
KnarfB
2025-01-14 05:48 AM
Hello @Andrew Neil ,
Thank you for rising this up.
I escalated your request internally to take a closer look at the problem (via Internal ticket number: 200359).
2025-01-14 06:05 AM
STM2CubeMX Project Manager Advanced Settings has "Do not generate function call" options for the various _Init functions.
hth
KnarfB
2025-01-14 06:33 AM - edited 2025-01-14 06:44 AM
Ah yes - that's it!
Although, in the specific case of the RTC alarm, it still just creates one MX_RTC_Init function - whereas I'd have thought it more likely that you'd want to configure and start the RTC itself separately from setting an alarm?
But that's a different question ...
EDIT: New question here: https://community.st.com/t5/stm32cubemx-mcus/configure-rtc-alarm-separately-from-rtc/m-p/761701