Why callback of "RTC Alarm" does not work?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-10-19 6:21 AM
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/75XcH5Qr
- Labels:
-
RTC
-
STM32CubeMX
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-10-19 7:08 AM
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
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-10-19 7:52 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-10-19 8:56 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-10-19 10:08 AM
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)
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2021-10-19 10:56 AM
No, and I do not know how to do it!
