I'm using the RTC on my STM32F103 to keep the date and time but when I reset the MCU the date is lost.
I know that this behaviour is due to the RTC implementation ( it uses a counter ).
To prevent the date loss, I think to store the date into one or more backup register.
My date is composed by 3 byte (Year, Month and Date).
Could any one provide me a example about how to solve my problem?