cancel
Showing results for 
Search instead for 
Did you mean: 

RTC in STM32F302VE MCU Occasionally reset to initialize configuration time.

NGreen
Associate

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.

1 REPLY 1

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