Skip to main content
DK.7
Associate III
October 19, 2021
Question

Why callback of "RTC Alarm" does not work?

  • October 19, 2021
  • 5 replies
  • 2983 views

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 

This topic has been closed for replies.

5 replies

ST Technical Moderator
October 19, 2021

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

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
DK.7
DK.7Author
Associate III
October 19, 2021

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
DK.7Author
Associate III
October 19, 2021

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

ST Technical Moderator
October 19, 2021

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 

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
DK.7
DK.7Author
Associate III
October 19, 2021

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