S12 EEPROM Power-OFF Protection 

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S12 EEPROM Power-OFF Protection 

1,185 Views
jinpengxiao
Contributor II

When the block write EEPROM, suddenly loses power, how to block the EEPROM data protection

Labels (1)
0 Kudos
Reply
2 Replies

1,017 Views
lama
NXP TechSupport
NXP TechSupport

Hi,

If you talk about standard EEPROM then there is no protection against power off while writing flash. The data are unknown and the process not clear. You should solve it by power bank (capacitor, battery) and writing process checking to ensure the E/W is finished.

(As an example I can mention how the MCU can be secured during programming of the application into flash. At the beginning usually mass erase is executed to refresh the flash - it also sets security byte to secure state. Then if power is lost before the security byte is reprogrammed the MCU is after next restart secured)

In the case of S12XE device and its EEEPROM the power off causes that only old data will remain in the flash. Ongoing process is cancelled.

Best regards,

Ladislav

0 Kudos
Reply

1,017 Views
jinpengxiao
Contributor II

thanks

          S12 EEPROM is D—Flash,Can I use this way that use security state? HCS128 (G128) Ongoing process will cancel? suddenly  power off

0 Kudos
Reply