Trying to stablish connection between i.MX 8M Nano and debugger

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

Trying to stablish connection between i.MX 8M Nano and debugger

389 Views
Leonel_AguileraC
Contributor I

Hello,

We have an i.MX 8M Nano EVK, more specifically, a 8MNANOLPD4-EVK currently running on a custom Linux distribution from the SD. And I am unable to get it to stablish a connection with the proposed IDEs in order to debug programs.

I started by trying to use MCUXpresso, but as solved in this thread https://community.nxp.com/t5/MCUXpresso-SDK/Trying-to-build-SDK-with-MCUXpresso-IDE-support/m-p/8822... i.MX8 boards SDKs are not supported by MCUXpresso, so I switched to the other two IDEs, gcc was discarded since it lacked the debugging functionality, so after a few failed attempts at using eclipse (since the i.MX boards also were not supported by openOCD nor other debuggers I could find), IAR was chosen. 

From the MCUXpresso SDK builder the SDK for IAR for the EVK-MIMX8MN board was built and downloaded, and then the steps of the guide included followed. After installing the J-Link software from Segger, establishing a connection with the board using putty, installing in IAR both the SDK and the patch, loading the hello_world.eww project and succesfully building ("making") it, with the board connected to its power supply throught the "Type C Port2", connected to a windows PC via the "USB MicroB Debug Port" and powered on with the switch "SW101", when trying to download and debug the project IAR gives the error "no emulators connected via usb".

After that I made sure that the IAR debugger had selected J-Link/J-Trace as driver, the JTAG/SWD speed was propperly set and using the flash loader as explained in this guide by segger: https://wiki.segger.com/IAR_EWARM, but it is still impossible to stablish a connection.

Labels (1)
0 Kudos
1 Reply

375 Views
igorpadykov
NXP Employee
NXP Employee

Hi Leonel

 

one can download (build) SDK_EVK-MIMX8MN from link (Select Development Board):

https://mcuxpresso.nxp.com/en/welcome

use IAR tool patch for i.MX 8M Nano​

 

Best regards
igor

0 Kudos