When I push the reset button of my nucleo, what kind of reset is it?
I'm asking because I'm reading the page 533 of the manual of my Nucleo L152-RE
"""
After system reset, the RTC registers are protected against parasitic write access with the DBP bit of the PWR power control register (PWR_CR). The DBP bit must be set to enable RTC registers write access.
After power-on reset, all the RTC registers are write-protected. Writing to the RTC registers is enabled by writing a key into the Write Protection register, RTC_WPR.
The following steps are required to unlock the write protection on all the RTC registers except for RTC_ISR[13:8], RTC_TAFCR, and RTC_BKPxR.
1. Write ‘0xCA’ into the RTC_WPR register.
2. Write ‘0x53’ into the RTC_WPR register. Writing a wrong key reactivates the write protection.
The protection mechanism is not affected by system reset
If I want to be able to write to some of the RTC registers to program an RTC wakeup event, what do I need to do here? Both things? Set the DBP bit of the PWR_CR to 1 and then write those 0xCA and 0x53 to the RTC_WPR register?
