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)
{
}
How can i debug my code without this fault ?
Hi @pankaj_sharma ,
Please run the code flexspi_nor_edma_transfer_cm7 in the internal RAM to operate the external flash:
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