cancel
Showing results for 
Search instead for 
Did you mean: 

Why callback of "RTC Alarm" does not work?

DK.7
Senior

Hi, I'm a beginner!

Could you help me, why callback of "RTC Alarm" does not work?

What am I doing wrong?

Link to a code of main.c https://pastebin.com/75XcH5Qr0693W00000FD1FiQAL.png 

5 REPLIES 5
Imen.D
ST Employee

Hello @DK.7​ 

I would suggest adding more details to your post in order to help you solve your issue.

Debug your project and try to identify where is it sticking.

What kind of issue do you observed? Do you get an error message ?

I advise you to check and follow the RTC example with STM32CubeF4 firmware:

STM32Cube_FW_F4_V1.26.2\Projects\STM324xG_EVAL\Examples\RTC\RTC_Alarm

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

Thanks for the answer, I looked at the example but did not find solutions!

I thought if I will activate the interrupt for alarm of RTC and in the code to call the desired Callback, then the alarm clock will work ... But, not in my case and I do not understand why it is don work!

I will give any information. I just don't know what exactly you need to show. 0693W00000FD2LCQA1.png

DK.7
Senior

I think the reason why my alarm clock do not work, it is because, I do not have some setting!?!? see screenshot.

And so I have "RTC_OUTPUT_DISABLE" in my the code.

If I'm right, how to fix it is?0693W00000FD2zMQAT.png

Imen.D
ST Employee

Have you connected the EXTI line 17 to the RTC Alarm event ?

Did you set the following sequence correctly? (to enable the RTC Alarm interrupt)

0693W00000FD3SdQAL.png 

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

No, and I do not know how to do it!