Hard fault occured when I read from S32K144 flash address 0x78400

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

Hard fault occured when I read from S32K144 flash address 0x78400

954 Views
中当陈
Contributor III

Product:S32K144 EVB

IDE:IAR for ARM 7.60.2

hard_fault.png

①:Where the hart fault occurred。The variable flashAddress=0x78400

②:Based on CFSR and HFSR,I found that MCU accessed a invalid address。

③:Then I watched memory range 0x78400--0x7840f,  the result was "-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --"。So it indicated that the memory is not accessible。

Can someone tell me why the memory is not  accessible please?

Best regards!

2 Replies

745 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Please check FERSTAT[DFDIF] flag for Double-bit ECC errors.

Thanks,

Daniel

0 Kudos

745 Views
中当陈
Contributor III

Hi, Daniel

Thank you for your prompt  reply!

After I erased all the flash, the problem disappeared.So, I check the FERSTAT[DFDIF] flag, the flash is 0.

Best regards to you!