2021-06-10 04:45 AM
Hi all,
Our product is build upon STM32F302VE MCU with ECX-34R (32.768KHz) crystal oscillator connected to PC14-OSC32_IN & PC15-OSC32_OUT and Panasonic CR1220 (3V) battery connected to VBAT.
We configured the RTC via CubeMX and used RTC_BKP_DR0 register to mark & check if RTC alrady configuared in the MX_RTC_Init function.
Occasionally the clock is reset to the initialize configuration time without any explanation.
2021-06-10 06:36 AM
So you (or Cube - it's the same, it's your program now) check the RTC_BKP_DR0 content and it does not match? Place a breakpoint there and read out the RTC registers and RCC_BDCR register content, and check/post.
JW