Backup registers are cleared on reset - STM32G474
Hi all,
I have a STM32G474 and data in backup registers (eg. LL_RTC_BKP_DR0) are cleared after reset or power cycle (3.3 V battery is present!).
Code is generated by CubeMX with LL drivers. I enabled RTC and disabled all tampers.
In the main code, I can write to the registers (and readback or check via debugger/SFR view).
However, if I restart the debugger, press the reset button (with or without debugger connected) or switch of VCC (with VBAT present from a CR2032 battery), backup registers are all 0.
As I understand it, this could be caused by a RTC domain reset or a tamper event. I have neither, as far as I can tell. What could be wrong? Is there an example for this?
Regards, Martin