2016-09-14 03:16 AM
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 #rtc2016-09-14 09:49 AM
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.
2017-02-13 01:27 AM
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 ...