Anonymous
Not applicable
Jul 28, 2015
04:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 28, 2015
04:01 AM
Hi,
I am using SN8205, SDK V3.2.1.
How to make RTC time maintained between reboots?
Reboot is only VDD cutoff, VBAT will always be powered.
Regards,
Karthik
Solved! Go to Solution.
Labels
- Labels:
-
SDK 3.x
1 Solution
Anonymous
Not applicable
Nov 18, 2015
10:25 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 18, 2015
10:25 PM
A patch may help overcome this issue to some extent.
Here is the algorithm -
- Store the powersave state(enabled/disabled) of CPU in RTC Backup Registers.
- After reboot, in the init sequence, check the backup resistors to determine the last known state of CPU during the shutdown.
- If the state was powersave disable, the RTC was ticking at 1Hz, so no action needed and the time will be correct.
- If the state was powersave enabled, the RTC was ticking at 800Hz, need to recompute correct time using the existing functions convert_rtc_calendar_values_to_units_passed() and add_1p25ms_contribution().
6 Replies