Dear @andy.tx ,
I use the Stock Ixora Board 1.0a.
Toradex Windows CE 7.0 2.1b2 for Tegra Built Aug 7 2017 15:55:47
INFO:OALLogSetZones: dpCurSettings.ulZoneMask: 0xb
L2 cache enabled
MainMemoryEndAddress adjusted from 0x86000000 to 0x9FE00000
Main Phys Mem: 0x80000000:0x9FDFFFFF
Carveout Phys: 0x9FE00000:0x9FFFFFFF
Cold boot selected
SMP: Active CPUs = 4
Extended Mem : 0xA0000000:0xFFEFFFFF
Chip Id: 0x30 (Handheld SOC) Major: 0x1 Minor: 0x3 SKU: 0xb1
NVRM Initialized shmoo database
PllClocks(Mhz): X=1300, M=800, C=600, P=408, A=24.576
SysClocks(Mhz): CPU=1300, AVP=240, SysBus=240, Mem=400, EMem=800
GraphicClocks(Mhz): Host=106, 3D=133, 2D=133, Epp=133, Mpe=133, Vde=408
Loading FlashFileSystem(eMMC)...
Done FlashFileSystem(eMMC)(0)
Loading Audio...Done
Loading Serial2(UART_B)...Done Serial2(0)
Loading Serial3(UART_C)...Done Serial3(0)
Loading Serial4(UART_D)...Done Serial4(0)
Loading SDIO(SDIO3)...Done(1004)
Loading SDIO(SDIO1)...NvDdkSdioSetClockFrequency: Requested: 100 KHz, Actual: 10 0 KHz
Done(1004)
Loading PCIe...PCIE: port 0: link down, aborting
PCIE: port 1: link down, abortin g
PCIE: port 2: link up in 0 us
Done
Loading USBFunction(Port1)...Done
Bus:Device:Function: VendorID,DeviceID
0:0:0: 0x10de,0xe1c Virtual P2P to 1
0:1:0: 0x10de,0xe1d Virtual P2P to 2
0:2:0: 0x10de,0xe1d Virtual P2P to 3
3:0:0: 0x8086,0x157b
Loading I21x Ethernet...Done
Loading USBHost(Port2)...PCIe: Slot Clock Request Change (0x0)
Done
Loading USBHost(Port3)...Done
Loading DisplayDriver...Done(30)
Set LCD to 800x480 (59Hz)
Set HDMI to 800x480 (60Hz)
Set HDMI to 800x480 (60Hz)
Loading Keyboard/MouseDriver...Done
Loading TouchDriver...Maximum Allowed Error 5:
Done
RTC Time restored (11.02.2019 14:16:40)
Loading NETUI...
Done NETUI
... 0
If i start the sub from the topic with a short test, i get the following error:
Error while setting RTC time
Error while setting RTC time
After i opened the Systems “Date/Time Properties” i get this:
RTC Time set (11.02.2021 14:26:49)
RTC Time set (11.02.2021 14:26:58)
RTC Time set (11.02.2021 14:26:58)
RTC Time set (11.02.2021 14:27:03)
RTC Time set (11.02.2021 14:27:03)
with this code:
Private Sub btnTimeTest_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTimeTest.Click
Dim myDateTime As New DateTime(2019, 2, 11, 17, 0, 0)
setDateTime(myDateTime)
End Sub
I get
I2cInit failed.
Error while setting RTC time
Error while setting RTC time
with this code (after Reset):
Private Sub btnTimeTest_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTimeTest.Click
Dim myDateTime As DateTime = DateTime.Now
'Dim myDateTime As New DateTime(2019, 2, 11, 17, 0, 0)
setDateTime(myDateTime)
End Sub
I get
RTC Time set (01.01.2006 11:00:17)
RTC Time set (01.01.2006 11:00:17)
Does the dateTime Object contain something which disturbs the RTC if not set?
Best regards, Stefan