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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
618件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
1 解決策
465件の閲覧回数
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 件の賞賛
返信
1 返信
466件の閲覧回数
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 件の賞賛
返信