cancel
Showing results for 
Search instead for 
Did you mean: 

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.

vamsi
Associate II

 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.

3 REPLIES 3
vamsi
Associate II

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

JPeac.1
Senior

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

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?