AnsweredAssumed Answered

STMCubeMX + STM32F0308-DISCO + RTC Alarm

Question asked by mike.s on Sep 23, 2015
Latest reply on Oct 1, 2015 by Amel N

I am using STM32CubeMX with F0_V1.4.0 HAL to generate a IAR 7.40 EWARM project.

I have setup the STM32F030R8Tx CPU to use the RTC, and generate an internal Alarm A.

In the STM32CubeMX I have setup the RTC configuration parameters to have the time set to 01:01:00 and the alarm time set to 01:01:10.  In the NVIC Settings I enable to RTC global interrupt through the EXTI lines 17, 19 and 20.  I then generate the project.

It runs through and initialized the RTC, and sets the alarm in the MX_RTC_Init(); function.

I set my debugger to run to inside the RTC_IRQHandler() function, but it never gets there.

Has anyone successfully used STM32CubeMX to setup an RTC alarm interrupt?  I can use the

to get the RTC to interrupt, but even if I copy and paste the settings of the example to the cube generated version.  The alarm never goes off.

Thanks for any help.