Question
RCC_DBP flag set timeout
Hi,
I have a low power controller which i will use as RTC.
type: STM32L031F6P7.
I use a custom board
These are the clock settings
I also notice there is no oscillating signal at PC15 . When should the LSE oscillator start? after powerup or after SystemClock_Config()?
The crystal is recommended by STM, and the PCB seems ok.
I see the Backup Domain Write Protection disabling goes in timeout.
RCC_APB1ENR.PWRE bit is set at that moment.
Can't figure out what is going wrong.
in SystemClock_Config -> HAL_RCC_OscConfig ->
/* Wait for Backup domain Write protection disable */
tickstart = HAL_GetTick();
while(HAL_IS_BIT_CLR(PWR->CR, PWR_CR_DBP))
{
if((HAL_GetTick() - tickstart) > RCC_DBP_TIMEOUT_VALUE)
{
return HAL_TIMEOUT; // ********* the code exits here ****************
}
}
}thank you
