Using VBAT (CR2032 battery) in STM32H747I-DISCO board
Hi all,
I would like to keep RTC value (and keep the RTC working) during power off of the disco board, so I am planning to cut SB16 (soft bridge) from+3.3V and solder an external CR2032 +V battery to the board. My first questions are:
- How will I know that the battery is connected to VBAT pin of the MCU during initialization of RTC (from software)? The initialization generated by STM32CubeMX overwrites the date and time registers of the RTC. If the battery is connected the initialization could not modify the RTC clock value and I think it should do nothing with the battery backup RTC... I guess if the RTC is enabled during power on initialization then I have skip RTCInit(). Is this okay?
- Is there any example or tech paper how to use external battery for RTC and backup RAM? (Hidden secrets)
- Is the +3V CR2032 battery good pick (the 3V voltage) for backing up RTC?
- Any notes are welcome!
Thanks,
Louis
