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.
Can you try it on the latest DEY-2.6 stock images?
Did you check the voltage on J2 after 10 min? does it drop?
What revision of cc6ul SBC Pro do you have?
Also with the newest image and RTC firmware it doesn’t work.
These are the details:
Board serial number I182104032162, Board Vers. 4; Board ID 135
Images from /support/digiembeddedyocto/2.6/r1/images/ccimx6ulsbc/fb/ date April 4th 2019:
dey-image-aws-ccimx6ulsbc.boot.ubifs 7.745.536
dey-image-aws-ccimx6ulsbc.rootfs.ubifs 89.645.056
First try: It didnt work, then update MCA firmware to
Version: v1.12
MD5SUMs:
mca_cc6ul.bin: d852924e23d628db36136a4b5d234f2e
root@ccimx6ulsbc:~# mca_fw_updater -f /var/volatile/mca_cc6ul.bin
The update process may take 20 seconds or more - DO NOT POWER OFF OR RESET
After reboot:
root@ccimx6ulsbc:~# date
Sat Aug 10 05:26:12 UTC 2019
root@ccimx6ulsbc:~# hwclock -w
root@ccimx6ulsbc:~# hwclock -r
Sat Aug 10 05:26:26 2019 0.000000 seconds
I take as new coin cell, V at coin cell is 3.25V
Switch off
V drops to 2.72V
Switch on without network at 7:49
V at coin cell meanwhile dropped to 2.74 if power on at the board
root@ccimx6ulsbc:~# hwclock -r
Sat Aug 10 05:27:44 2019 0.000000 seconds
root@ccimx6ulsbc:~# date
Sat Aug 10 05:29:05 UTC 2019