Folks,
What is the recommended procedure to inject ECC faults into flash memory, to verify the correct functioning of flash ECC? (_Not_ EEPROM or OTP; my understanding is the ECC mechanism is substantially different for those, being computed by the wrapper instead of the core.)
In particular, my options seem to be to deliberately flash an ECC error (using nowFlash, or variations on the F021 API), or to use DIAG_MODE 7.
- Is there example code for DIAG_MODE 7? Proper use seems subtle. The TR (spnu499a, 5.6.2.6) says things like "Do a slave access of the desired address", which I'm not sure exactly how to do.
- Are there generally recommended procedures here? We use the F021 API to flash the chip; maybe we could establish deliberately bad sections of data for verification. Assuming we only read that memory at verification time, would that have any bad side effects?
Thanks!
-- egnor