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)

2 REPLIES 2
Sarra.S
ST Employee

Hello @Andrew Neil

I believe this is also related to this posted created by @TDJ : Re: CubeMX RTC config issues - STMicroelectronics Community? 

I have already submitted a ticket regarding this behavior!

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Yes, that looks very similar!