About error correction code(ECC)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

About error correction code(ECC)

953 次查看
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 项奖励
回复
1 回复

929 次查看
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 项奖励
回复