AnsweredAssumed Answered

Setting Up RTC with LSE and VBAT

Question asked by Iman Hosseinzadeh on Jun 10, 2017
Latest reply on Jun 15, 2017 by Iman Hosseinzadeh

I would like to enable the internal RTC of STM32F103 MCU. RTC works fine with HSE clock source. But when I select LSE as clock source, RTC stops working. It is necessary to use LSE and VBAT because the real time should be saved after possible shut down of MCU.

  I use HAL libraries and the settings are made using CubeMX software. I found some code in Standard Peripheral Library. The code works, so the hardware does not have any special problem.

 

Thanks in advance.

Outcomes