Hi,
I would like to use the D-flash ECC capabilities of the MC9S12XEP100.
Let's say that the ECC detects a single bit error in the D-flash while I am accessing it. Is the relevant physical D-flash sector automatically reprogrammed? Or do I have to implement an ISR for this? The MC9S12XEP100 reference manual vaguely refers to: "Automated program and erase algorithm with verify and generation of ECC parity bits."
Cheers,
Timo
Solved! Go to Solution.
No,
ECC algorithm works during flash reading. If there is single bit error, ECC algorithm will try fix this error and you will read repaired value instead of real value.
If you want “remove” this single bit error, you have to erase whole sector (256 byte in case of D-Flash) and program all data back.
When you program phrase (8bytes), eight ECC bits will be calculated and programmed automatically.
No,
ECC algorithm works during flash reading. If there is single bit error, ECC algorithm will try fix this error and you will read repaired value instead of real value.
If you want “remove” this single bit error, you have to erase whole sector (256 byte in case of D-Flash) and program all data back.
When you program phrase (8bytes), eight ECC bits will be calculated and programmed automatically.