MIMXRT1061CVL5B: Run Debugging Session from QSPI NOR Flash

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

MIMXRT1061CVL5B: Run Debugging Session from QSPI NOR Flash

Jump to solution
1,262 Views
Lukaz
Contributor III

Hello,
I intend to use the MCU MIMXRT1061CVL5B, and now I am examining its compatibility with the product's functions using the MIMRT1060-EVKB. One limitation that I have is the use of the OpenSDA, therefore I checked if I can boot the external flash with the USB-OGT and I was successful to do so using the flashloader with the elftosb and the MfgTool2. My question is, as in the development phase I need to run debugging sessions, how is it possible to do so from the external QSPI NOR Flash?
You can also simply refer me to sources that explain such things.

Thank you in advance.

0 Kudos
Reply
1 Solution
1,259 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Lukaz ,

  If you need to debug the RT1061, you need the debugger at first.

  If you are using the MIMXRT1060-EVKB board, it has the on board debugger directly, you can connect the opensda USB port, then the default debugger is CMSIS-DAP, you can open the SDK project, then debug it directly, the board need to enter the internal boot mode.

  If you are using the customer board, you need to find an external debugger, eg, Segger JLINK, then through the SWD to debug the chip project.

  We also have the application which may useful to you:

https://www.nxp.com/docs/en/nxp/application-notes/AN12183.pdf

Wish it helps you!

Best Regards,

kerry

View solution in original post

0 Kudos
Reply
4 Replies
1,260 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Lukaz ,

  If you need to debug the RT1061, you need the debugger at first.

  If you are using the MIMXRT1060-EVKB board, it has the on board debugger directly, you can connect the opensda USB port, then the default debugger is CMSIS-DAP, you can open the SDK project, then debug it directly, the board need to enter the internal boot mode.

  If you are using the customer board, you need to find an external debugger, eg, Segger JLINK, then through the SWD to debug the chip project.

  We also have the application which may useful to you:

https://www.nxp.com/docs/en/nxp/application-notes/AN12183.pdf

Wish it helps you!

Best Regards,

kerry

0 Kudos
Reply
1,241 Views
Lukaz
Contributor III

Hi Kerry,

when I run the debugger session I get this message and I press yes to proceed and the debugging session works fine image.png

but I was wondering if you have any idea why am I getting this message (below is the error message from the debug log) 

Lukaz_0-1652267027136.png

 

Thanks

0 Kudos
Reply
1,230 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi @Lukaz ,

   As I know, it is related to the IJET, as when I use the CMSIS DAP debugger, which is the RT1060-EVK default debugger in the IAR, it doesn't have this issues.

  So, you can ignore that issue, just use it.

  If you have any other issues, welcome to create the new question post.

Best Regards,

kerry

1,247 Views
Lukaz
Contributor III

Thank you, it worked fine with me using I-JET debugger.
Just some points to clarify the solution. I have not disconnected any jumper from the board, I have connected J1 3-4 to use the USB-OTG port for power. The important thing was the debugger configurations (see screenshots below)image.png