LSERDY is set, but LSE not running correctly
Hi, I am working on a project for STM32F746ZGT6 that uses the RTC clocked from the LSE.
In some cases I am seeing an issue where the LSE appears to start (LSERDY reads as 1 within the call to HAL_RCC_OscConfig from the peripheral libraries) but it appears that the clock is not running correctly.
I can tell that the LSE is either not running at all, or running with incorrect frequency because:
- When I try to configure the RTC, I get a timeout inside RTC_EnterInitMode where it pends for 1 second on the INITF flag being set
- If I use TIM5 to measure the LSE clock period, I can see that the period is not always as expected, and sometimes I do not get any timer interrupt at all
My main question is, what are the conditions needed for LSERDY to be set to 1?
Clearly whatever these conditions are, they are being met, but I would like to know specifically what this means so that I can try to narrow down the source of issues with my LSE clock