Skip to main content
Associate
October 15, 2025
Solved

Stuck in RCC_FLAG_LSERDY after bootup when VBAT is present

  • October 15, 2025
  • 1 reply
  • 207 views

PART NO: STM32H743IIT6
CUBE_IDE VER: 1.19.0
SDK : STM32Cube FW_H7 V1.12.1

LSE PART NO. : CM9V-T1A-32.768kHz-12.5pF-20PPM-TA-QC


Hello everyone,
I am trying to use RTC on mentioned STM part number. I have enable LSE and configured the RTC.
Currently i am not using any battery, i am using a power supply with 3V to VBAT.

After boot up inside HAL_RCC_OscConfig, i am getting timeout while checking RCC_FLAG_LSERDY flag.

 
while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
 {
 if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
 {
 return HAL_TIMEOUT;
 }
 }

 

The sequence is, once i have provided VDD then VBAT, everything works fine.
Next i just turn off the VDD, VBAT is still present.
Then i turn on the VDD and facing this issue.

Another thing to note is, i am not facing this issue with LSI. So i changed the crystal but facing the same issue.

Also the PDR_ON pin is connected to VDD according to specifications.

Is it possible to provide any insight of why this is happening? and how to resolve this?
Any feedback will be appreciated.

Best Regards,
Devjeet Mandal

Best answer by mƎALLEm

Hello,

Probably it's due to your crystal that could be not compatible with the STM32 LSE or you didn't set the correct drive level that allows the oscillator to start.

I invite you to read the article: How to select a compatible crystal and load capacitors for STM32 with layout guidelines

Or more details can be found in the AN2867 "Guidelines for oscillator design on STM8AF/AL/S and STM32 MCUs/MPUs". Section 6 provides some recommended crystals for each MCU family. 

 

1 reply

Associate
October 28, 2025

Hello everyone,
Is there any comment regarding this?

Thanks

mƎALLEm
mƎALLEmBest answer
Technical Moderator
October 29, 2025

Hello,

Probably it's due to your crystal that could be not compatible with the STM32 LSE or you didn't set the correct drive level that allows the oscillator to start.

I invite you to read the article: How to select a compatible crystal and load capacitors for STM32 with layout guidelines

Or more details can be found in the AN2867 "Guidelines for oscillator design on STM8AF/AL/S and STM32 MCUs/MPUs". Section 6 provides some recommended crystals for each MCU family. 

 

"To give better visibility on the answered topics, please click on ""Accept as Solution"" on the reply which solved your issue or answered your question."
Associate II
March 11, 2026

I have the same issue when power cycling.

I have a LSE oscillator driven from RTC battery.

I checked on scope that the LSE is present during power cycle and power down with no glitches(runt or duty cycle).

I tried disabling LSECSS, no effect. 

I suspect with LSE, the SystemClock_Config reconfigs the LSE and causes an issue and everything is stuck at 
while (__HAL_RCC_GET_FLAG(RCC_FLAG_LSERDY) == 0U)
{
if ((HAL_GetTick() - tickstart) > RCC_LSE_TIMEOUT_VALUE)
{
return HAL_TIMEOUT;
}
}