RTC is not working properly. (Vbat related problem)
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.

