I'm using STM32F030RCT6 with CubeMX. Device is a datalogger and RTC is the main thing that cannot fail. On Errata Sheet there is something about RTC Shadow Register.
I configured CubeMX to not generate MX_RTC_Init() function and it has been working normally so far. (I'm using LSE)
I need to update the time/date from GSM time but when I set the year to 18 with HAL_SetDate() and after a small delay I read with HAL_GetDate(), sDate.Year gave me 20. Apart from Year, the other values are correct.
What I tried:
- Used LSI
- while (HAL_SetDate != HAL_GetDate) HAL_SetDate(ActualDate)
- First
HAL_GetDatethenHAL_SetDate
I got no progress and thing even got worse like Month = 56, Day = 45 etc.
Thanks in advance. Best regards.