Difficult to understand why problems can sometimes happen in RT-THREAD
In my compilation on any version of the O.S. using STM32F417 all went fine.
define BSP_USING_ONCHIP_RTC
define RT_USING_RTC
deleted the WEAK in source file and changed to __weak
No alarm set
At leats I have no such problem, but have others.
Any time I power the board which has a tiny onboard battery all is fine. Time is not lost but only after weeks of power down of course.
msh />cal
Time: 21:39:02
Date: Fri. 16 February 2024
M T W T F S S
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29
Ask rtc device reset at boot ?