LPC55S06-EVK fsl_iap driver Flash_Read returns ecc error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC55S06-EVK fsl_iap driver Flash_Read returns ecc error

494 Views
ttahut
Contributor III

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?

Labels (1)
0 Kudos
Reply
1 Reply

465 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @ttahut 

About detail explanation, please refer to below thread:

https://community.nxp.com/t5/LPC-Microcontrollers-Knowledge/LPC55xx-How-to-fix-AHB-Read-HardFault-Er...  

 

BR

Alice

0 Kudos
Reply