cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L476VG RTC overflow

mejrissi
Associate II
Posted on September 14, 2016 at 12:16

Dear Gents,

I am having a little bit of trouble with the RTC on the STM32L476VG. Can anyone tell me please what is the maximum date that the RTC can calculate? Is there an overflow interrupt? I can't find in the stm32l4xx_hal_rtc.c the function RTC_IT_CONFIG(RTC_IT_OW, ENABLE) like the STM32F1 series?

Thanks in advance for your time.

#stm32l4 #rtc
2 REPLIES 2
mejrissi
Associate II
Posted on September 14, 2016 at 18:49

I understood the problem. Reading the RTC datasheet further, I found that THE RTC registers contain directly the year, month, week, day, ... There is no counter which may overflow.

Nor Sch
Associate III
Posted on February 13, 2017 at 10:27

Yes, but the Year only supports 2 Numbers and so you do not have the century and therefor the HW can not calculate itself the Day of the Week. Additionally ST still uses the archaic BCD-Format, so you need some additonal Code for converting from normal Time-Values (Unix-Time or Decimal Numbers) to the BCD which is supported by the STM32L4-HW. Things could be better and easier ...