AnsweredAssumed Answered

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

Question asked by Whitehorn on Apr 9, 2018
Latest reply on Apr 10, 2018 by Daniel Martynek

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

Outcomes