2024-11-06 03:31 AM
We are making a board using stm32f767nih6. There seems to be a problem with RTC and Vbat while testing the board.
First, we are using LSE with a 32.768Khz external crystal oscillator. However, there is a symptom that it slows down by about 10 seconds during approximately 40 minutes.
Second, we have set up Vbat to supply 3.3V using a coin battery. However, when the power is turned off and turned on after a certain period of time, the RTC restarts around the point where the power was turned off.
For example, when the power is turned off at 10:00 and turned on at 10:30, the time displayed on the device is 10:00.
2024-11-06 03:41 AM - edited 2024-11-06 04:07 AM
@Seyoung wrote:we are using LSE with a 32.768Khz external crystal oscillator.
That's just a crystal - not a crystal oscillator:
2024-11-06 04:01 AM
Hi,
I think that you don't have the LSE enabled.
Kind regards
Pedro
2024-11-06 04:20 AM
@Seyoung The behaviour sounds very unusual. At first I assumed that you were inadvertently using the free-running LSI instead of the LSE as the clock source for the RTC. However, 10s deviation within 40min, which corresponds to 4167ppm, is far too much even for LSI. Perhaps you should add the programming of the RTC and LSE here.
Regards
/Peter
2024-11-06 04:25 AM
2024-11-06 04:49 AM
Hi,
I'm going to suggest the crystal capacitance loading is far too high, making it run slow, and when it switches to VBAT it stalls...
Kind regards
Pedro