cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to store the time of RTC in STM32F042k6 when connected to Duracell DL2032 Battery.

ABogg.1
Associate II

Hello all,

I am unable to save time or restore proper time after I remove Vdd from my MCU when connected to a external 3V li ion battery (DL2032). After every power cycle my time gets reset to its initial default value.

When I supply 3V from a regulated power supply RTC time works as expected. Can anyone please suggest me what kind of external batteries are to be used for STM32F042k6 or is there a special circuit that I should follow?

Thanks in advance!

Amith B G

12 REPLIES 12
ABogg.1
Associate II

thanks for the reply. So, it is not possible to have RTC clock time by using using the STM32F042K6?

regards,

Amith B G

Peter BENSCH
ST Employee

It is possible to use the RTC with the STM32F042K6 if the MCU is powered by VDD. As long as VDD is supplied, the RTC will also run in STOP mode.

But it is not possible to buffer the VBAT domain due to the missing VBAT pin.

Regards

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
ABogg.1
Associate II

Thanks for the detailed explanation.:-)

regards,

Amith B G