2022-08-26 01:26 AM
Hello all ~
I have STM32MP157A-EV1 and STM32MP157C-DK2.
I want to change system time and keep it.
But It is not working well.
Below is the test log on EV1.
root@stm32mp1:~# date -s "20031025 18:00:00"
Sat Oct 25 18:00:00 UTC 2003
root@stm32mp1:~# date
Sat Oct 25 18:00:03 UTC 2003
root@stm32mp1:~#
root@stm32mp1:~# hwclock --systohc --utc
root@stm32mp1:~# hwclock
2003-10-25 18:00:18.632338+00:00
reboot ....
root@stm32mp1:~# date
Mon Jun 27 03:19:28 UTC 2022
Am I miss something?:sad_but_relieved_face:
thanks.
Solved! Go to Solution.
2022-08-26 01:37 AM
Hi @hochul yoo
Topic already covered here :
Do you have a 3V battery on VBAT pin to keep time in absence of power ?
Olivier
2022-08-26 01:37 AM
Hi @hochul yoo
Topic already covered here :
Do you have a 3V battery on VBAT pin to keep time in absence of power ?
Olivier
2022-08-26 02:02 AM
Thanks,
I found the solution by link you provided.
I need this commnd to set the system time from the RTC
hwclock --hctosys