Skip to main content
NGreen
Visitor II
June 10, 2021
Question

RTC in STM32F302VE MCU Occasionally reset to initialize configuration time.

  • June 10, 2021
  • 1 reply
  • 566 views

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.

This topic has been closed for replies.

1 reply

waclawek.jan
Super User
June 10, 2021

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