2021-10-26 08:45 AM
2021-10-26 08:50 AM
> Crystal for the RTC stops running when power goes away
How do you know?
Read out and check/post content of relevant registers (RCC.BDCR, RCC).
Check schematics of reference boards (e.g. https://www.st.com/en/evaluation-tools/32f429idiscovery.html ) and compare to yours. Post as much information as possible so that we don't need to guess.
JW
2021-12-12 06:24 PM
JW,
I do see the external crystal stops running when power goes away.
What can I do to keep the crystal running? I try but can’t get it running off the battery.
Please help me know how to get the Crystal running!!!
This new technology I invented with this CPU is awesome. Please help my business!!
I need to make RTC run OK.
2021-12-13 06:52 AM
LSE is an ultralow power circuit, if you observe crystal directly using normal oscilloscope probe, you are quite likely to influence it so that it stops. You should observe it only indirectly - directing it to MCO1 pin (I'm not sure it works when VDD is off), or observing RTC's 1Hz/512Hz output, or simply observing whether time in RTC changes properly.
What is your VDD? And how exactly the battery is connected? Check also for bad solder joints.
You may want to experiment with "known good" boards such as Disco or Nucleo (they may have the LSE crystal not populated, read carefully their respective manual).
JW
2021-12-19 10:03 PM
My VDD is 3.3V. My battery is always connected 100% to the Vbat pins. It is connected correct to the CPU.
I used and oscilloscope to see the LSE crystal oscillating. Every time the VDD powers off, the crystal does not oscillate. Even if I don't touch the crystal the RTC does not move up in time when power is off. I really need a list of the registers and bits in the register that MUST be setup to make sure this runs correct.
Can anyone please give me the register list and bits to setup to make sure this works??
2021-12-19 10:52 PM
Maybe consider application note AN2867.
Stm32f429 are gen1 stm32f4. No possibility to change LSE drive level.
the external 32768Hz quartz must be carefully choosen (some part are stated stm32f4 compatible) and routed, as like two condensators..
Also you MUST verify all power pins and gnd..and good decoupling...
Generally startup code produced by cube mx and hal do the job (if you take care of not initing Rtc at all startup but only when cold startup after V backup lost).
But ref manual can help... (smile for jw...)