When the block write EEPROM, suddenly loses power, how to block the EEPROM data protection
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
thanks
S12 EEPROM is D—Flash,Can I use this way that use security state? HCS128 (G128) Ongoing process will cancel? suddenly power off