I have an embedded board (NanoPi R5C) with an RTC battery connector:
On the board it's marked obvious which one is positive and negative. Moreover, checking the documentation:
RTC backup current is 0.25μA TYP (VDD =3.0V, TA =25℃).
Connector P/N: Molex 53398-0271
I have attached a CR1616 battery onto this socket with correct polarity.
When checking startup log, RTC seems initializing, however with an incorrect date (2017):
$ dmesg | grep rtc
[ 2.979031] rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes
[ 2.979143] rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes
[ 3.198765] rk808-rtc rk808-rtc: registered as rtc0
[ 3.199273] rk808-rtc rk808-rtc: setting system clock to 2017-08-04T09:00:03 UTC (1501837203)
[ 6.011447] rtc-hym8563 5-0051: rtc information is valid
[ 6.018302] rtc-hym8563 5-0051: registered as rtc1
Timedatectl also reports incorrect RTC date:
$ timedatectl status
Local time: Sun 2023-07-09 22:52:41 CEST
Universal time: Sun 2023-07-09 20:52:41 UTC
RTC time: Fri 2017-08-04 09:07:44
Time zone: Europe/**** (CEST, +0200)
System clock synchronized: no
NTP service: n/a
RTC in local TZ: no
Sometimes I saw "yes" for "System clock synchronized", however after toggling the power, the RTC loses it's value and resets to this 2017 date.
Voltage on this RTC connector is 2.96V.
What else could I check and fix?