How to Attach the Debugger

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to Attach the Debugger

ソリューションへジャンプ
2,546件の閲覧回数
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,090件の閲覧回数
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,091件の閲覧回数
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,090件の閲覧回数
leifzars
Contributor IV

Thanks, that did it!

0 件の賞賛
返信
2,090件の閲覧回数
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,090件の閲覧回数
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,090件の閲覧回数
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,090件の閲覧回数
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,090件の閲覧回数
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 件の賞賛
返信