Openocd on the MIMXRT1060-EVK

cancel
Showing results for 
Search instead for 
Did you mean: 

Openocd on the MIMXRT1060-EVK

581 Views
ryanwinter
Contributor I

Hey everyone, I

recently bought a MIMXRT1060-EVK. My development with other boards has been to use the gcc toolchain and debug using openocd.

So far I haven't had much luck getting openocd working with this board/cpu. Just checking if anyone had some tips here.

Ryan

Labels (1)
Tags (3)
0 Kudos
6 Replies

399 Views
ryanwinter
Contributor I

Thanks everyone, I have this working now :smileyhappy:

0 Kudos

385 Views
fbeaulier
Contributor I

Hello Ryan,

I just bought an MIMXRT1060-EVK board and like you i want to use Openocd in order to debug and flash my code on this board.

As interface i guess cmsis-dap.cfg should work but what about the target ?

I can't find any iMXRT target or board, can you please tell me what you have done to make it work ?

Thank you for your help

François

0 Kudos

399 Views
mkellner
Contributor I

As well, I am looking to build with gcc. 

I have found Section 5 of the document but it refers to directories in example code that don't exist.

slate:hello_world $ pwd

/Users/user/Downloads/nxp/SDK_2.7.0_EVK-MIMXRT1060/boards/evkmimxrt1060/demo_apps/hello_world@


slate:hello_world $ ls

board.c          hello_world.c    board.h        hello_world.mex

clock_config.c   hello_world.xml  clock_config.h pin_mux.c evkmimxrt1060_sdram_init.jlinkscript pin_mux.h   hello_world.bin

readme.txt

The docs refer to an armgcc directory, which I expect holds a makefile, maybe a linker map. But I don't see the armgcc directory here.

0 Kudos

399 Views
victorjimenez
NXP TechSupport
NXP TechSupport

Hi Michael, 

The armgcc folder is located within each SDK project, see the image below. 

pastedImage_2.png

You can download the SDK from the following link: Welcome | MCUXpresso SDK Builder. Additional to this, you need to keep in mind the following note mentioned on the Getting Started with MCUXpresso SDK for EVK-MIMXRT1060 pdf, "The OpenSDA interface on your board is programmed with the J-Link OpenSDA firmware. If your board does not support OpenSDA, then a standalone J-Link pod is required.". The on-board debugger of the RT1060-EVK doesn't support the JLink firmware so you need a standalone JLink debugger.  

Regards, 

Victor 

399 Views
mkellner
Contributor I

Thank you. I realize I had chosen the wrong options when downloading the SDK.

0 Kudos

399 Views
victorjimenez
NXP TechSupport
NXP TechSupport

Hi Ryan, 

When you download the SDK for the RT1060-EVK in the docs folder you will find a pdf named "Getting Started with MCUXpresso SDK for EVK-MIMXRT1060". Section 5 of this document explains how to run an SDK example using ARM GCC. 

Regards, 

Victor 

0 Kudos