RTC Internal timestamp is only updated when the first time RTC is initialized and power shifted to VBAT. On further power up and shutdown events that RTC Timestamp registers are not being updated with new time stamp values.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-17 1:00 AM
I'm reading TS and clearing TSF, ITSF, TSOVF flags upon power up. But when power cycle happens again, the TS registers are still containing the previous value, but not present value.
- Labels:
-
RTC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-18 11:00 PM
It looks like RDP mechanism is actually causing troubles in powering up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-20 6:40 PM
Are the TSF/TSOVF flags set before you clear them? What are you using to trigger a timestamp capture?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-21 12:27 AM
TSF and ITSF are cleared by HAL GetTimeStamp function. I am not checking them explicitly. I am clearing OVF flag too as a precaution.
I am enabling ITSE flag at the time of calendar initialization. My understanding is that with this flag being set, TS registers will be updated when RTC power source is changed from VCC to VBAT. So when power cycle occurs, at the startup time I am expecting TS registers to contain the time when power last failed.
Am I missing something?
