Hello,
I have a ConnectCore 6UL SBC Pro board with a new coin cell Varta CR1225 is connected to JP2 , V=3.3V.
The sysinfo output is:
||*Component*||*Version*
|| DUT | SN-020960, ccimx6ulsbc 0x02 SBCv4 board_ID=135.
|| U-Boot | U-Boot dub-2015.04-r9.2 (Jul 19 2017 - 17:11:30)
|| Firmware | dey-2.4-r1-20180915210659
|| Kernel | Linux btc 4.9.81-dey+g2c6ae4c #1 SMP PREEMPT Thu Aug 2 19:25:08 UTC 2018 armv7l GNU/Linux
|| meta-digi | HEAD:29add13409e8a0d8cc7f49276b060ae124b7bbe4
|| MCA | HW_VERSION=1 FW_VERSION=1.12
|| I/O Expander | HW_VERSION=1 FW_VERSION=0.02
The board is booted with network and the correct time is written to the RTC with
root@btc:~# hwclock -r
Tue Aug 6 15:59:41 2019 0.000000 seconds
I can read the hwclock:
root@btc:~# hwclock -r
Tue Aug 6 16:00:09 2019 0.000000 second
When I switch on the board 10 minutes or more later without any network connected it has the wrong time.
I also removed the /etc/timestamp in /etc/init.d/bootmisc.sh so that during boot the time read from the MCA-RTC is not read from the /etc/timestamp file.
It seems that the MCA RTC is working, I used the rtc_test:
root@btc:~# ./rtc_test -a
rtc_test 3.1 Copyright Digi International Inc.
RTC test/demo application
Current RTC date/time is 5-8-2019, 16:34:15.
Test results:
ioctl cmd RTC_RD_TIME: OK
Test finished
The MCA firmware was updated before to V.1.12 from file
mca_cc6ul.bin 27.756 07.05.2019 08:47
What else can I do to get a RTC working because keeping the correct time also without any network connection is essential for our application.
Best regards Uwe