Calling HAL_RTC_SetTime and HAL_RTC_SetDate during runtime causes RTC failure.
Our application needs timestamp included in every packet, so during runtime we are updating the RTC datetime. But calling the above function is causing RTC interrupt failure.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-01-03 04:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-05 10:17 AM - edited ‎2023-09-05 10:36 AM
Hello @CCtl.1 ,
Make sure to configure properly the RTC clock source and prescaler settings. Check also the interrupt priorities.
If possible, share your code and provide more details about your hardware/software used and your configuration. This will help community users to answer you.
Imen
Thanks
Imen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-05 10:20 AM
>>Our application needs timestamp included in every packet, so during runtime we are updating the RTC datetime.
If the RTC is WORKING, WHY do you need to keep updating it, surely it just ticks if operating normally, off the LSE crystal..
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-06 08:57 AM
What is "RTC interrupt failure"?
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2023-09-06 09:14 AM
ST removed my comment, where I said that those, who write the whole topic in the title, most likely are the same, who cannot understand the concept of Set/Get and Input/Output. :beaming_face_with_smiling_eyes: Even without any "harsh" words! What a pathetic and childish behavior...