How to Connect debugger (JTAG) to a running target system

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

How to Connect debugger (JTAG) to a running target system

1,661 Views
markthompson170
Contributor III

Hi All

I have a problem with my code on a S32R274 Z4 core.

My code runs fine when I download and run from the debugger (PeMICRO/S32DS).

Eclipse/S32DS seems to be doing some type of initialization that allows the code to run in debug mode only.

When I power cycle target without using the debugger the code will not run to competition.

The problem appears to be in some global variable setup, executing the code crashes the Z4 CPU.

I don’t seem to be getting in to any of the exception handlers. I have attached a catch-all handler and don’t seem to be entering that handler.

I need to attach the jtag debugger and see the state after the crash, but don’t seem to understand how to do that with the Eclipse/S32DS IDE.

 

Thanks

Mark

Labels (2)
0 Kudos
Reply
1 Reply

1,315 Views
jiri_kral
NXP Employee
NXP Employee

Hi Mark, 

you can attach to running target via PE Micro by modifying startup sequence: 

s32ds_2017-06-29_09-40-14.png

When you are already attached - you can check Exception_handling_registers (any other core related registers) in the SPR Registers window (on the main menu bar click Window -> Show view -> other ->SPR Registers. If view is complaining that there is missing data file - click on settings button and set the Z4 core) 

s32ds_2017-06-29_09-54-09.png

Jiri

0 Kudos
Reply