cancel
Showing results for 
Search instead for 
Did you mean: 

VBAT & RTC Issues on Circuit - STM32H563ZIT6

Bharathkumar
Associate II

I am experiencing issues with the VBAT pin on the STM32H563ZIT6 microcontroller. Specifically, the VBAT pin is not responding properly. I am using a CR2032 CMOS battery for RTC backup, but it is not maintaining the date and time as expected. When the power supply is off, the RTC does not hold and run correctly, but it resumes running once the power supply is restored.

I have attached the circuit diagram for your reference. Could you please provide a clear explanation of the potential issues and offer guidance on how to resolve them? Expert advice on this matter would be greatly appreciated.

 

VBAT & CMOS : 

VBAT_CKT.png

CMOS Battery.png

 

13 REPLIES 13

Ok, but C14 should be there. (I use 10u cer.cap here.)

+

Set in Cube the LSE drive high !

AScha3_0-1719038560736.png

Then it should work.

If you feel a post has answered your question, please click "Accept as Solution".
unsigned_char_array
Senior III

As I suspected LSE is disabled. So your crystal will never oscillate.

unsigned_char_array_0-1719042425511.png

unsigned_char_array_1-1719042672605.pngAnd you don't use LSE as clock source either.

 

Drive strength depends on the MCU family and used crystal. Higher drive strength consumes more current. Too low and it may not oscillate.
Check Table 7. "Recommended crystal / MEMS resonators for the LSE oscillator in STM32"
from an2867-guidelines-for-oscillator-design-on-stm8afals-and-stm32-mcusmpus-stmicroelectronics.pdf for what your MCU supports.I've had issues with using a not supported crystal with too high capacitance. It resulted in some boards not booting sometimes since the LSE init function time out. The trick was using a different crystal with correctly calculated capacitors and set the right drive strength (in our case second highest level was good).

Check the datasheet of your MCU to see what drive strength levels are supported for LSEDRV.
"Table 43. Low-speed external user clock characteristic" in stm32h563zi.pdf

unsigned_char_array_2-1719043062040.png

 

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.

As per your instructions, the problem was solved. We checked it a few times, each for a duration of 5 to 10 minutes, over the last few days. If any issues occur in the future, I will call you back. Thank you for your support and guidance.

I'm glad you got it to work. Please kudo the posts that helped you.

Kudo posts if you have the same problem and kudo replies if the solution works.
Click "Accept as Solution" if a reply solved your problem. If no solution was posted please answer with your own.