I am testing the RTC with a VF50 and eval board and the time is not kept after a reboot.
Here are the things I have checked:
checked the battery: 3.2V
Checked jumpers: JP23 = EXT_RTC and all X8 and X11 jumpers are installed
checked the registry entries:
HKLM\Software\Toradex\RtcSync\Protocol = 1
HKLM\Software\Toradex\RtcSync\SlaveAddr = 0x68
HKLM\Init\Launch48 = rtcsync.exe
Enabled dbg.serial output when rebooting:
Loading Touch...
I2C Warning: .\src\i2c_vyb.c, 148: Start failed
+OEMSetRealTime(2006/1/1 12:0:8.146)
+OEMSetRealTime(2001/6/19 18:10:38.000)
RTC Time restored (20.06.2001 01:10:38)
Done Touch
+OEMSetAlarmTime(2001/10/28 2:0:0.000)
-OEMSetAlarmTime(rc = 1)
Output when setting the clock in WCE:
+OEMSetRealTime(2001/6/19 18:12:9.349)
+OEMSetAlarmTime(2001/10/28 2:0:0.000)
-OEMSetAlarmTime(rc = 1)
+OEMSetRealTime(2001/6/19 18:12:9.622)
+OEMSetRealTime(2019/4/2 11:31:3.000)
+OEMSetAlarmTime(2019/11/3 2:0:0.000)
-OEMSetAlarmTime(rc = 1)
+OEMSetAlarmTime(2019/11/3 2:0:0.000)
-OEMSetAlarmTime(rc = 1)
+OEMSetAlarmTime(2019/11/3 2:0:0.000)
-OEMSetAlarmTime(rc = 1)
I2C Warning: .\src\i2c_vyb.c, 148: Start failed
I2C Warning: .\src\i2c_vyb.c, 148: Start failed
RTC Time set (02.04.2019 18:31:04)
+OEMSetRealTime(2019/4/2 11:31:8.719)
+OEMSetAlarmTime(2019/11/3 2:0:0.000)
-OEMSetAlarmTime(rc = 1)
I tested a VF61 in the same eval board and the external RTC works properly.
Any suggestions?