Dear Experts
At present, I understand how ecc works and I am aware of the connection between ecc and esm.
In respect of flash ecc, I enable the ecc in startup.c
flashWREG->FEDACCTRL1 = 0x000A060AU;
_coreEnableFlashEcc_();
and do the ecc checking :
checkFlashECC();
flashWREG->FDIAGCTRL = 0x000A0007U;
and I enable the one bit ecc error esm channel interrupt, so I guess if I have a one bit error in my flash, after execting these statements, the esm interrupt notification function will be entered, then I know one bit ecc error occured and I can do anything I want there. (will the wrong 64 bits flash value be corrected automatically?)
but I have a problem: if have to testify my program, i have to see these code can function as we expected.
how to deliberately generate a one bit ecc error in flash in some place I specified ? then i can observe the correction procedure?
Best Regards
Leo