cancel
Showing results for 
Search instead for 
Did you mean: 

Configure RTC Alarm separately from RTC

Follow on from:

https://community.st.com/t5/stm32cubemx-mcus/how-to-have-cubemx-configure-a-peripheral-but-not-enable-it/m-p/761692/highlight/true#M30801

 

To be able to configure the RTC Alarm in CubeMX, you have to enable it in CubeMX.

This means that all the configuration - of both the RTC itself, and the alarm - will be done in the 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?

ie, you configure & start the RTC at startup, but you don't set the Alarm until some time later - when it's needed.

Is there a way to do that in CubeMX ?


(I'm using F0, but this seems to be general Cube MX behaviour - not specific to any series)

0 REPLIES 0