how to see global variables in realtime via JTAG debugger

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

how to see global variables in realtime via JTAG debugger

1,934 Views
momo12
Contributor III

Hi

My s32k board is connected via a Segger Jlink pro. How can I watch/view my variables , while core is running?

In IAR there is the live watch window, where I can watch my global variables while S32k is running.

In Design studio I only found the "expressions" window, which gives you access to variables only when CPU is halted.

Any idea?

Thx

4 Replies

1,597 Views
BlackNight
NXP Employee
NXP Employee

Hi m,

I'm using the SEGGER J-Scope to watch my variables in realtime:

J-Scope | SEGGER - The Embedded Experts 

I hope this helps,

Erich

1,597 Views
Catosh
Contributor IV

Brilliant as usual, Erich. Almost what I was looking for. 

Out of curiosity, what's the impact of the J-Scope on the MCU performance?

I'm more interested in the HSS scenario, so I don't have to instrument the code.

0 Kudos

1,597 Views
BlackNight
NXP Employee
NXP Employee

thanks :-).

The impact depeneds on the update frequency. I use usually a 10Hz rate for a few variables. The debugger/J-link is able to read the memory while the target is running using 'free' bus cycles, so the performance hit is nearly not noticable if used with care. I estimate it in the 1-2% range.

I hope this helps,

Erich

0 Kudos

1,597 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

I'm afraid that there is no such feature. You can try adapt conditional breakpoints for your debug needs. 

Jiri

0 Kudos