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,175件の閲覧回数
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,161件の閲覧回数
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 件の賞賛
返信