STM32MP157 RTC loses a few seconds on every reboot
Hi,
I am experiencing a loss of about 2 seconds on the hwclock every time I reboot. Regardless of how long the system has been powered off, it is consistently the same amount of time lost.
I have come across the following posts which seem to point to the issue being in the initialization of the LSE oscillator during startup.
STM32 RTC loses one second after each reset
Stm32L452 RTC Clock Drift with use---related to entering/exiting shutdown mode?
My question is, since the RCC initialization is handled by the A7 core, where do I prevent the LSE from re-initializing on each boot? Below is a snippet from my device tree
//tfa device tree
clk_lse: clk-lse {
st,drive = < LSEDRV_MEDIUM_HIGH >;
/* USER CODE BEGIN clk_lse */
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <32768>;
/* USER CODE END clk_lse */
};Any suggestions would be appreciated.
