When I run cm rtc I get a date of 1980 but when I run date I get the correct date in UTC. I have the VBAT pin connected to power on the module. According to the Legato docs the RTC is supposed to be updated by the modem but this doesn’t seem to be occurring even though the time TIME_SERVICES="qcom_time" line in /etc/time_service.conf daemon is not commented out.
Why isn’t the RTC being updated?
Ultimately my requirement is to have date/time persist across resets (watchdog, app or external). Power would be constant across the reset.
I did a lot of testing yesterday and it seems like le_clk_GetAbsoluteTime() returns the same as date command. If the WP85 is powered on without an antenna it seems to restore the RTC value of 0 which is Jan 6, 1980 or GPS epoch.
The RTC still doesn’t get updated from the network time or GPS time so I think I’m going to do it manually.