How to Set a Memory Watchpoint in KDS

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

How to Set a Memory Watchpoint in KDS

1,381件の閲覧回数
pcpro178
Contributor III

I'd like to set a memory watchpoint in KDS (v3.2.0), so that program execution halts, if the memory location is loaded with a specific value.  Is this possible?

ラベル(1)
タグ(2)
0 件の賞賛
3 返答(返信)

1,088件の閲覧回数
jorge_a_vazquez
NXP Employee
NXP Employee

Hi Jim Fell 

Yes, in the memory window, after you add a memory monitor, you can right click on the address you want to set a memory watchpoint, click on "Add Watchpoint (C/C++)" and this breakpoint will appear in your Breakpoint view:

pastedImage_1.png

pastedImage_2.png

Hope this helps

Best regards

Jorge Alcala

0 件の賞賛

1,088件の閲覧回数
pcpro178
Contributor III

Thanks, but I already know how to do that.  It will pause execution every time the value at that memory location is changed.  I needed to be able to pause execution only when the memory location is changed to a specific value.  I'm debugging a data buffer, so the values at the memory location change frequently.

0 件の賞賛

1,088件の閲覧回数
BlackNight
NXP Employee
NXP Employee

Hi Jim,

you can specify that in the 'condition' field of the watchpoint, see towards the end of C/C++ Watchpoints with Eclipse Kepler | MCU on Eclipse 

I hope this helps,

Erich

0 件の賞賛