How to Attach the Debugger

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to Attach the Debugger

跳至解决方案
2,542 次查看
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

标签 (1)
0 项奖励
回复
1 解答
2,086 次查看
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 项奖励
回复
7 回复数
2,087 次查看
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 项奖励
回复
2,086 次查看
leifzars
Contributor IV

Thanks, that did it!

0 项奖励
回复
2,086 次查看
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 项奖励
回复
2,086 次查看
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 项奖励
回复
2,086 次查看
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 项奖励
回复
2,086 次查看
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 项奖励
回复
2,086 次查看
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 项奖励
回复