9s12X - How to check for a single bit fault on P-Flash

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

9s12X - How to check for a single bit fault on P-Flash

872 次查看
dastek
Contributor III

I want to check the P-Flash for any single bit faults as it may good to know if this is present.

I wrote a loop to read a mis-aligned word from all 8 byte blocks in the P-Flash memory space.  And then I check the FERASTAT register for SFDIF != 0.

My question arises as when I set FCNFG |= FSFD then it immediately sets the SFDIF flag bit. 

I am probably doing something wrong but the data sheet is not very specific as to how to check this.

How do I do an ECC test?

Regards,

Wade

0 项奖励
回复
1 回复

776 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hello Wade,

The FSFD bit is only used to simulate single-bit errors and force the flash interrupt.
Basically, If the bit is set, any flash read sets the single-bit error flag SFDIF.
If the bit is cleared, only a read that returns corrupted data sets the error flags.

Regards,
Daniel

0 项奖励
回复