STM32F103 Loss RTC Date when RESET
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-08-30 2:18 AM
Hello friends
i using STM32CubeMX 4.2.2 & Firmware F103 v1.6 , MCU = STM32F103ZET6
I set the time and date in RTC When micro resets I miss the date but time is still right
How do I fix this problem?
Thank,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-08-30 7:02 AM
You will have to calculate the date. The 103 only has a 32-bit field as RTC. In which you can fit an epoch counter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-08-30 9:32 AM
>>The 103 only has a 32-bit field as RTC.
Should be sufficient to hold over a century (100 years) worth of seconds?
Sounds like the reset path code doesn't check if the RTC is already initialized, or has some other nonsensical implementation.
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
‎2017-09-07 4:14 PM
Someone has a solution?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-09-07 8:03 PM
Unfortunately not for the library you're using, review the code execution, and how the RTC is handled/reset during initialization. In parallel perhaps look at how you're determining the type of reset, ie external button vs exit standby
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
‎2017-10-03 6:38 AM
I use HAL functions
Why does not this bug solve ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-10-03 11:54 AM
Likely has very low priority. The STM32F1 is a ten year old design, the newer parts have a calendaring RTC, not a 32-bit second counter.
If time/date are critical to you, then you'll need to implement your own solution which will likely be more robust and functional.
Up vote any posts that you find helpful, it shows what's working..
