Skip to main content
Jim Rodrian
Associate II
March 24, 2020
Question

Why does EEPROM erase when resetting from BOR?

  • March 24, 2020
  • 1 reply
  • 1017 views

EEPROM Question: Why does EEPROM erase when resetting from BOR?

STM32L051 EEPROM unlocks, reads, erases, writes and locks successfully.

EEPROM contents are maintained through normal operating voltage and down to BOR threshold of 2.3 volts.

 

A reset caused by BOR causes all but six words of EEPROM to erase to 0x00000000. A software reset with "NVIC_SystemReset();" is OK. EEPROM contents are retained, as expected.

This topic has been closed for replies.

1 reply

Jim Rodrian
Associate II
March 26, 2020

I found the problem. There was a subtle timing issue with the "losing power" firmware and the startup firmware following a reset. (The product has a super-cap to allow the microcomputer to generate audio and visual "loss of AC power" alarms.)