About error correction code(ECC)

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

About error correction code(ECC)

678 Views
Xuqq
Contributor II

Hello everyone,

Power off occurred while writing EEPROM. After power on, S12ZVL96 program will be stuck when reading EEPROM data. ECC is found through testing.

When ECC interrupt occurs, erase all EEPROM data and reset again to solve this problem.However, all EEPROM data is lost.

I tried to erase only the EEPROM data with ECC error and protect other EEPROM data, but found that S12ZVL96 was still stuck when reading the EEPPROM after resetting.

Do I need to erase all EEPROMs after an ECC error occurs in the EEPROM? If I only erase the bytes with ECC errors, can I remove the ECC error?

Regards

Xu

0 Kudos
Reply
1 Reply

654 Views
lama
NXP TechSupport
NXP TechSupport

Hi,

you do  not have to erase entire EEPROM. You have to erase entire sector where the ECC error is reported, reset is not necessary. If the error is reported again then the sector is wrong. In this case, before we say the eep is wrong it is good to check flash/eeprom clock, compare correctness of routines with some example or use standard drivers, you do not use cumulative programming.

Best regards,

Ladislav

0 Kudos
Reply