Debugging MIMXRT1176 FreeRTOS Hello World . ERROR: Could not connect to target.

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

Debugging MIMXRT1176 FreeRTOS Hello World . ERROR: Could not connect to target.

1,407 Views
usala
Contributor III

I am having difficulties debugging with MCUXpresso using MIMXRT1170-EVK board..  To simplified matters I build a simple sample project 9FreeRTOS Hello World) and keep having trouble getting the J_Link debugger to work with the following errors.

ERROR: Could not connect to target.
SEGGER J-Link GDB Server V7.50 Command Line Version
JLinkARM.dll V7.50 (DLL compiled Jul 1 2021 17:37:28)
Command line: -nosilent -swoport 2332 -select USB=850101832 -telnetport 2333 -singlerun -endian little -noir -speed auto -port 2331 -vd -device MIMXRT1176xxxA_M4 -if SWD -halt -reportuseraction
-----GDB Server start settings-----
GDBInit file: none
GDB Server Listening port: 2331
SWO raw output listening port: 2332
Terminal I/O port: 2333
Accept remote connection: localhost only
Generate logfile: off
Verify download: on
Init regs on start: off
Silent mode: off
Single run mode: on
Target connection timeout: 0 ms
------J-Link related settings------
J-Link Host interface: USB
J-Link script: none
J-Link settings file: none
------Target related settings------
Target device: MIMXRT1176xxxA_M4
Target interface: SWD
Target interface speed: auto
Target endian: little
Connecting to J-Link...
J-Link is connected.
Device "MIMXRT1176XXXA_M4" selected.
Firmware: J-Link V10 compiled Jul 28 2021 10:07:03
Hardware: V10.10
S/N: 850101832
Feature(s): RDI, FlashBP, FlashDL, JFlash, GDB
Checking target voltage...
Target voltage: 3.30 V
Listening on TCP/IP port 2331
Connecting to target...
InitTarget() start
InitTarget() end
InitTarget() start
InitTarget() end
InitTarget() start
InitTarget() end
InitTarget() start
InitTarget() end
ERROR: Could not connect to target.

I research a bit on similar issue but without success.

Any ideas?  I was able to do the same successfully with the MIMXRT105-EVK.

Best regards,

Ulises

0 Kudos
5 Replies

1,373 Views
usala
Contributor III

This issue is still pending.  I get the same errors using SEGGER's Ozone IDE.

Best regards,

Ulises

0 Kudos

1,354 Views
usala
Contributor III

This issue is still pending and I am not getting any responses from NXP.

I have also tried Segger RTT Viewer with the same results.  I Reached out to Segger and the think I am using custom hardware.

Can you please verify that the EVK-MIMXRT1176 does not have debugger issues.

Thanks you,

Ulises

0 Kudos

1,405 Views
usala
Contributor III

I found this in the release notes for the MIMXRT117- EVK.

8.5 MCUXpresso IDE doesn't support cm4 download/debug
MCUXpresso IDE doesn't support cm4 download/debug. Flash Erase will fail on Linux/Mac OS. These support will be available
in future MCUXpresso IDE version.

Has this been fixed in a newer version of MCUXpresso?

Best regards,

Ulises

0 Kudos

1,399 Views
b36401
NXP Employee
NXP Employee

As for MCUXpresso IDE version 11.4 it does support JTAG for download to the RAM.
Please refer to chapters 1.1 and 10.8 of MCUXpresso IDE User Guide:
https://www.nxp.com/docs/en/user-guide/MCUXpresso_IDE_User_Guide.pdf

0 Kudos

1,388 Views
usala
Contributor III

I tried your suggestion as referred in the manual but still fails to connect.

My question is in reference to MCUXpresso SDK Release Notes for MIMXRT1170-EVK

section 8.0 : Known Issues. see 8.5 below.  I attached a copy of the release notes document.

8.5 MCUXpresso IDE doesn't support cm4 download/debug
MCUXpresso IDE doesn't support cm4 download/debug. Flash Erase will fail on Linux/Mac OS. These support will be available
in future MCUXpresso IDE version.

Best regards,

Ulises

0 Kudos