2017-02-28 03:35 AM
Im using STM32F103C8T6 and have issues with RTC and VBAT. Project generated in CubeMX 4.19.0 for Keil, I commented date and time setup in MX_RTC_Init() and time restores fine after reset/power off, but date becomes 1-1-2000, how can I restore date?
#date #rtc #vbat2017-07-27 09:44 AM
Hello,
sorry this was a missunderstanding.
I don't want to built my own calender, I must use the HAL functions.
With the STM32F303 it works fine with HAL.
In my case this type is cheaper than the STM32F103, so the decision was easy.
But whats about this comment in the examples at the cube library?
@note On STM32F1 families, as there are restrictions on the RTC version V1, date
will be lost in all the cases.Best regards
Andreas
2017-07-27 12:08 PM
,
,
Hi!
this comment is true.
Inside the stm32f1xx_hal_rtc.c Line 55 is writen ' ♯ ♯ ♯ ♯ ♯ WARNING: Drivers Restrictions , ♯ ♯ ♯ ♯ ♯ '
It concerns the 'software aproach' operation of rtc, not the hardware.
There is no any hardware issue in errata sheet about this
Best Regards!
vf
2017-10-26 02:13 PM
Maybe too late for you, but may be useful for googlers
2017-11-24 02:18 PM