Skip to main content
vamsi
Associate II
February 17, 2022
Question

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.

  • February 17, 2022
  • 2 replies
  • 959 views

 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.

This topic has been closed for replies.

2 replies

vamsi
vamsiAuthor
Associate II
February 19, 2022

It looks like RDP mechanism is actually causing troubles in powering up.

JPeac.1
Visitor II
February 21, 2022

Are the TSF/TSOVF flags set before you clear them? What are you using to trigger a timestamp capture?

vamsi
vamsiAuthor
Associate II
February 21, 2022

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?