RTC resets on power-cycle despite battery
I've connected a CR2032 battery to the V_BAT pin on my custom STM32F746 board. Right now, the battery is connected directly without a Schottky diode. When I power the board off and on again, though, the RTC is reset to zero values.
According to the reference:
To allow the RTC to operate even when the main digital supply (VDD) is turned off, the VBAT pin powers the following blocks:
• The RTC
• The LSE oscillator
• The backup SRAM when the low-power backup regulator is enabled
Because of this list (and I'm using the LSE), I figured that I don't have to muck around with shadow registers manually.
Could it be that the standard MX_RTC_Init(); function generated by CubeMX also resets the RTC time and date? If so, how would I fix that?
