cancel
Showing results for 
Search instead for 
Did you mean: 

STMCubeMX + STM32F0308-DISCO + RTC Alarm

mikes
Associate II
Posted on September 23, 2015 at 19:48

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 the

STM32Cube_FW_F0_V1.4.0\Projects\STM32F0308-Discovery\Examples\RTC\RTC_Alarm

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.

1 REPLY 1
Amel NASRI
ST Employee
Posted on October 01, 2015 at 12:49

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.