Does the Flash ECC reprogram the D-flash in case of a single bit error?

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

Does the Flash ECC reprogram the D-flash in case of a single bit error?

Jump to solution
617 Views
utwig
Contributor III

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

Labels (1)
0 Kudos
Reply
1 Solution
464 Views
RadekS
NXP Employee
NXP Employee

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.


View solution in original post

0 Kudos
Reply
1 Reply
465 Views
RadekS
NXP Employee
NXP Employee

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.


0 Kudos
Reply