STM32F417 RTC_BKPXR Reset during power up
- January 6, 2020
- 2 replies
- 972 views
The RTC_BKPXR register is for recording power off status in our board, we make 10 boards, 4 boards works and 6 boards keep reset the RTC_BKPXR during power recycle, I check the Vbat, it is 2.91 Volt after power off which is correct.
I use TureStudio to debug the board with BKPXR reset issue, when I download the firmware, the RTC_BKPXR content are correct; when I run it, the HAL_RTCEx_BKUPRead(&hrtc, RTC_BKP_DR1) and HAL_RTCEx_BKUPWrite(&hrtc, RTC_BKP_DR1, RTC_SET_SIGNATURE) function works fine, the write and read data are correct; when I restart it, the PC point to main() and all the BKPXR reset to 0 (Good boards keep BKPXR the original value), I check the ISR.TAMP1F and TAMP2F, both are 0, that means no "tamper detection event" occur?
Two questions:
- Without "tamper detection event", how the BKPXR get reset?
- "tamper detection event" is generated via TAMPER pin, from the STM32F4 pin definition (F407XX User manual), which pin is for TAMPER pin?
Attached the RTC registers during debugging.
Regards
Sam