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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,126 次查看
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 ?

标签 (1)
0 项奖励
回复
1 回复

1,112 次查看
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 项奖励
回复