2015-09-23 10:48 AM
Hello,
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 theSTM32Cube_FW_F0_V1.4.0\Projects\STM32F0308-Discovery\Examples\RTC\RTC_Alarmto 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.2015-10-01 03:49 AM
Hi mike.s,
Could you please share the .ioc file you used to generate your code?I need it to compare the CubeMX generated code with the one available in the Cube package.-Mayla-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.