how to see global variables in realtime via JTAG debugger

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

how to see global variables in realtime via JTAG debugger

4,170件の閲覧回数
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 返答(返信)

3,833件の閲覧回数
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

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

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

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