How attach to running program?

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

How attach to running program?

ソリューションへジャンプ
4,144件の閲覧回数
danielnäslund
Contributor III

OS: Ubuntu 18.04.1 LTS

IDE:  S32DS Power 2017.R1, Build id: 171018.

Board: Custom equipped with PowerPC MPC5748G

Debugger: P&E Multilink Universal

Sometimes I want to...

  • Reset a program from the IDE
  • Attach to a running program
  • Download a program to the device and debug it

With my usual ARM-debugger (Segger Ozone) there's a button in the main toolbar with a small dropdown for selecting between three actions.

But how do I accomplish these three actions in the S32 Design Studio?

I can download a program using the bug button in the main toolbar

pastedImage_3.png

There's a "Attach to Running Target" checkbox field in the Debug Configurations dialog

pastedImage_2.png

There's a yellow HW reset button in the Debug View

pastedImage_4.png

But the HW reset takes ~30s for me to take effect with a small program. And sometimes it fails completely. Is that expected?

When I want to attach to a program I've filled in the checkbox and started debugging. Sometimes I've succeed in attaching, and sometimes not. And when I've had the Attach to Running Target checkbox filled in by mistake I've started a debug session in the belief that the new version of the software was flashed to the device, when in fact, the debugger just attached to the old running software.

Is there some option that I've missed? Any suggestions on how to configure S32DS to make it clearer if the debugger will just attach or if it will download the program?

1 解決策
3,892件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

did you update your installatiion of  S32DS?  

For me with PE Micro Multilink FX takes reset about 3 sec (because of RAM Init). 

To make attach easier - you can create your own debug settings with attach only. Duplicate existing debug configuration, rename it and configure for attaching: 

pastedImage_1.png

pastedImage_2.png

pastedImage_3.png

Hope it helps. 

Jiri 

元の投稿で解決策を見る

1 返信
3,893件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

did you update your installatiion of  S32DS?  

For me with PE Micro Multilink FX takes reset about 3 sec (because of RAM Init). 

To make attach easier - you can create your own debug settings with attach only. Duplicate existing debug configuration, rename it and configure for attaching: 

pastedImage_1.png

pastedImage_2.png

pastedImage_3.png

Hope it helps. 

Jiri