How attach to running program?

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

How attach to running program?

Jump to solution
4,003 Views
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 Solution
3,751 Views
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 

View solution in original post

1 Reply
3,752 Views
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