2021-05-22 07:25 AM
But when I remove power (with the 3V battery still connected to Vbat) the date/time values freeze. That is, they remain where they were when to power was removed. How do I make the RTC continue to run during power down? Any help is appreciated.
Solved! Go to Solution.
2021-05-22 11:34 PM
Problem SOLVED!
I disconnected the battery (with power off) from Vbat and then ran the code. I then reconnected the battery (with power off) and ran the code again. This fixed the problem. Apparently whatever state the RTC was in was being maintained by the battery so removing the battery solved the problem.
2021-05-22 12:09 PM
Hello Bert,
maybe LSE clock has not enough power -> set (in cube) in RCC -> LSE clock setting : LSE drive -> high drive cap.
2021-05-22 02:05 PM
@AScha.3 Thanks for the reply. I changed the LSE to high power but it did not help.
2021-05-22 02:09 PM
so.. have you some cap on this supply? i made 10uF cer. cap par to Vbat . shure , that your supply is okay? never seen this problem, if hardware ok.
we had problems with starting up, but all related to too low drive setting. otherwise it working fine.
maybe, you should read the AN about the LSE / oszillators .
2021-05-22 11:34 PM
Problem SOLVED!
I disconnected the battery (with power off) from Vbat and then ran the code. I then reconnected the battery (with power off) and ran the code again. This fixed the problem. Apparently whatever state the RTC was in was being maintained by the battery so removing the battery solved the problem.