We are working on RTC. We use:
Code Generator: STM32CubeMx
-> Connect external 32.767 KHz crystal
-> 3.3 Coin Cell to VBat Pin
-> RTC Config: LSE 32.767 KHz
-> Time and calander active
--> We generate code from Code Generator and config according as same
--> First time we write date and time after that i will not initialize time/date when reset mcu and wakeup
so after then when i restart mcu my RTC clock time show garbage value and Date become reset.
--> we know RTC Date store in SRAM so its content erase when power up but
We want to update time and date automatically when power off mcu (connected VBat).
We are stuck here, Any way possible to do this, it is possible so please share us.
Thanks and Regards