How to Attach the Debugger

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

How to Attach the Debugger

Jump to solution
2,544 Views
leifzars
Contributor IV

I have a running board that I want to attach the debugger to. In CW this was an option, but I don't see it in KDS.

Is this possible via KDS? If not will it be and when?

 

I am using a GDB SEGGER J-Link session type.

 

Thanks

Labels (1)
0 Kudos
Reply
1 Solution
2,088 Views
BlackNight
NXP Employee
NXP Employee

Hi Leif,

I was able to do an attache with Segger J-Link, have a look here:

http://mcuoneclipse.com/2015/03/20/attaching-to-a-running-target-with-segger-j-link-gdb-and-eclipse/

I hope this helps,

Erich

View solution in original post

0 Kudos
Reply
7 Replies
2,089 Views
BlackNight
NXP Employee
NXP Employee

Hi Leif,

I was able to do an attache with Segger J-Link, have a look here:

http://mcuoneclipse.com/2015/03/20/attaching-to-a-running-target-with-segger-j-link-gdb-and-eclipse/

I hope this helps,

Erich

0 Kudos
Reply
2,088 Views
leifzars
Contributor IV

Thanks, that did it!

0 Kudos
Reply
2,088 Views
BlackNight
NXP Employee
NXP Employee

Hi Leif,

you can specify that it shall load only the symbols, but not flash the application file:

pastedImage_0.png

However, the Segger GDB still does a reset of the target at connection time: so it is not a true connect/attach, as the device receives a reset.

I hope this helps,

Erich

0 Kudos
Reply
2,088 Views
BlackNight
NXP Employee
NXP Employee

oh, actually it seems I have found a way to attach to a running target with Segger J-Link :-) I'll post my findings shortly.....

0 Kudos
Reply
2,088 Views
alexeyusoltsev
Contributor IV

  Hello Leif,

You can do it following next steps:

Top menu Run->Debug configurations->GDB Segger J-Link Debugging

Best regards,

Alexey.

0 Kudos
Reply
2,088 Views
leifzars
Contributor IV

No I mean attach to an running device, not re downloading and then attaching as you normally do when you start a debugging session.

CW has the option to Download, Connect, Attach and Custom when starting a debugging session.

0 Kudos
Reply
2,088 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi Leif,

from my understanding, KDS doesn't have exact feature as CW,

CW uses a proprietary debugger engine while KDS uses gdb, that's different.

with KDS, we can use C/C++ Attach to Application feature:

2015-03-20_11-18-36.png


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply