Internal RTC of stm32f103 is not working with VBAT

Working libraries, libraries being ported and related hardware
Post Reply
itsDavid
Posts: 2
Joined: Sat Mar 13, 2021 6:49 am

Internal RTC of stm32f103 is not working with VBAT

Post by itsDavid »

Hello everyone, I am trying to use internal RTC of stm32f103 with vbat. Can anyone please help me regarding this? My rtc time is getting reset after every power down of VCC. I have connected a Coin cell in the vbat pin. How can I make the rtc to keep time?
GonzoG
Posts: 403
Joined: Wed Jan 15, 2020 11:30 am
Answers: 27
Location: Prudnik, Poland

Re: Internal RTC of stm32f103 is not working with VBAT

Post by GonzoG »

Have you changed clock source to LSE ??
itsDavid
Posts: 2
Joined: Sat Mar 13, 2021 6:49 am

Re: Internal RTC of stm32f103 is not working with VBAT

Post by itsDavid »

GonzoG wrote: Sat Mar 13, 2021 8:58 am Have you changed clock source to LSE ??

Yess I have done that
ag123
Posts: 1655
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: Internal RTC of stm32f103 is not working with VBAT

Post by ag123 »

i'd guess if you are using the library,
https://github.com/stm32duino/STM32RTC
check your call to rtc.begin()
https://github.com/stm32duino/STM32RTC/ ... TC.cpp#L54
Post Reply

Return to “Libraries & Hardware”