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

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

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

2,910件の閲覧回数
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

ラベル(2)
0 件の賞賛
返信
1 返信

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