Could not debug with J-Link debugger

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

Could not debug with J-Link debugger

350 Views
sajithdevidas
Contributor III

I'm working with the RT1170 and MCUXpresso IDE. While the MCU-Link debugger is working fine with no issues, I encounter the following error when using J-Link

/******************************************************************************************/

 

[20-2-2024 07:50:21] Executing Server: "C:\Program Files\SEGGER\JLink\JLinkGDBServerCL.exe" -SettingsFile "D:\NXP"S WORKSPACE\BYTEBEAM_WORKSPACE\evkmimxrt1170_hello_world_demo_cm7\Debug\evkmimxrt1170_hello_world_demo_cm7 JLink Debug SettingsFile.jlink" -nosilent -swoport 2332 -select USB=69408052 -telnetport 2333 -singlerun -endian little -noir -speed 4000 -port 2331 -vd -device MIMXRT1176xxxA_M7 -if SWD -halt -reportuseraction

SEGGER J-Link GDB Server V7.88m Command Line Version

 

JLinkARM.dll V7.88m (DLL compiled Jul 19 2023 14:27:38)

 

Command line: -SettingsFile D:\NXPS WORKSPACE\BYTEBEAM_WORKSPACE\evkmimxrt1170_hello_world_demo_cm7\Debug\evkmimxrt1170_hello_world_demo_cm7 JLink Debug SettingsFile.jlink -nosilent -swoport 2332 -select USB=69408052 -telnetport 2333 -singlerun -endian little -noir -speed 4000 -port 2331 -vd -device MIMXRT1176xxxA_M7 -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: D:\NXPS WORKSPACE\BYTEBEAM_WORKSPACE\evkmimxrt1170_hello_world_demo_cm7\Debug\evkmimxrt1170_hello_world_demo_cm7 JLink Debug SettingsFile.jlink

------Target related settings------

Target device: MIMXRT1176xxxA_M7

Target device parameters: none

Target interface: SWD

Target interface speed: 4000kHz

Target endian: little

 

Connecting to J-Link...

J-Link is connected.

ERROR: Could not save file [D:\NXPS WORKSPACE\BYTEBEAM_WORKSPACE\evkmimxrt1170_hello_world_demo_cm7\Debug\evkmimxrt1170_hello_world_demo_cm7 JLink Debug SettingsFile.jlink]

Path not found!

 

Device "MIMXRT1176XXXA_M7" selected.

Firmware: J-Link V9 compiled May 7 2021 16:26:12

Hardware: V9.40

S/N: 69408052

Feature(s): RDI, GDB, FlashDL, FlashBP, JFlash

Checking target voltage...

Target voltage: 3.32 V

Listening on TCP/IP port 2331

Connecting to target...

Failed to attach to CPU. Trying connect under reset.

ERROR: Could not connect to target.

Target connection failed. GDBServer will be closed...Restoring target state and closing J-Link connection...

Shutting down...

Could not connect to target.

Please check power, connection and settings.

 

Server has been shut down.

 

/*************************************************************************/

 How can I debug with J-Link?"

 

0 Kudos
3 Replies

330 Views
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, my name is Pavel, and I will be supporting your case, maybe this threat could help you.

RT board recovery for debugger connect issues - NXP Community

Best regards,
Pavel

0 Kudos

324 Views
sajithdevidas
Contributor III

Hi Pavel,

I'm familiar with the issue mentioned in the post you referenced. However, in my case, that's not the issue. When I'm using other debuggers (such as MCU-Link), I'm able to debug fine. This problem only arises when using the J-Link debugger cable.

0 Kudos

312 Views
Pavel_Hernandez
NXP TechSupport
NXP TechSupport

Hello, could you share an image of the issue and your setup?

Best regards,
Pavel

0 Kudos