I am trying to use the supplied fsl_iap driver to read/write flash. When I try and call FLASH_Read(), it always returns kStatus_FLASH_EccError.
I have attached the lpcxpresso55S06_flashiap1 sample program that demonstrates this. I added the lines
90 and 91 to read 4 bytes from flash. This call always returns the ecc error. I noticed later on in the sample,
the for-loop that reads from flash directly. Is this the correct approach to read from flash? If not, any ideas why the
ecc error occurring? Any suggestions on how to fix it? Or should I just use the for loop method?