2024-10-22 04:27 AM
Hello STM32 Community,
I’m encountering an issue with the RTC on my STM32L4 microcontroller. When I connect VDD to the VBAT pin (without using a battery), the RTC is not functioning. However, if I use a battery for VBAT, the RTC works fine.
Here’s the situation:
Any insights or recommendations for solving this would be greatly appreciated!
Thank you for your help!
Solved! Go to Solution.
2024-10-24 01:04 PM
For test purpose, you can add one resister (220Ohm? depends your power consume) between Vbat and Vdd ,add one capacitor 100 uF , provide power to Vbat. This will emulate Vbat and Vdd delay.
It may give you idea.
2024-10-25 03:13 AM
2024-10-25 07:33 AM
You find the BDCR bit 8 need change to "1" , could you write to this bit?
This time the register is locked, you need follow reference manual page 1038 , enable this register first.
2024-10-25 08:18 AM
@SofLit, @STTwo-32
For this case, reset cause different, any suggestion from ST?
2024-10-25 10:04 AM
Issue Solved - RTC LSE Oscillator Configuration
Hi everyone,
The issue has been resolved! I made a few configuration changes:
After these adjustments, the oscillator is now working as expected.
Thank you for your support!
Best regards,
A. Sujith