stm32duino / STM32RTC

Arduino RTC library for STM32.
127 stars 48 forks source link

RTC looses time upon system reset #11

Closed LieBtrau closed 5 years ago

LieBtrau commented 6 years ago

Hello, The RTC is powered from the VBAT pin. It should be able to keep tracking time, even though the main power supply is off. According to this site that should be possible.

I checked with an oscilloscope if the LSE keeps running if the main VDD is off while VBAT is powered. That is ok.

The parameter resetTime in the rtc.begin(bool resetTime, RTC_Hour_Format format = RTC_HOUR_24); function probably allows to setup the RTC in the application without resetting its current time. It doesn't have the expected behaviour.

fpistm commented 6 years ago

This feature is currently not implemented. https://github.com/stm32duino/Arduino_Core_STM32/issues/266

And yes reset time will be used for that.

LieBtrau commented 6 years ago

Hi @fpistm, do you have any idea when this feature will be available?