Getting UNDEFINSTR(0) undefined instruction fault while debugging my flexspi code in imxrt1170

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

Getting UNDEFINSTR(0) undefined instruction fault while debugging my flexspi code in imxrt1170

768 Views
pankaj_sharma
Contributor I

Getting UNDEFINSTR(0) undefined instruction fault while debugging my flexspi code in integration project but the same lines of code is debugging fine in SDK Example( flexspi_nor_edma_transfer_cm7). I have updated the linker file(_Debug.ld) of integration project according to the linkscripts folder provided in SDK example of flexspi. The fault occurs while executing below while loop in the function flexspi_nor_flash_page_program().

/* Wait for transfer completed. */
while (!g_completionFlag)
{
}fault_screenshot.png

 How can i debug my code without this fault ?

Labels (1)
0 Kudos
Reply
1 Reply

754 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @pankaj_sharma ,

  Please run the code flexspi_nor_edma_transfer_cm7 in the internal RAM to operate the external flash:

kerryzhou_0-1635137447607.png

Then try it again, whether you still have issues or not?

If you still have issues, you also can change your boot mode to serial download mode, then test it again.

SW1:1-OFF,2-OFF,3-OFF,4-ON.

Select link application to RAM.

Wish it helps you!

Best Regards,

Kerry

 

0 Kudos
Reply