How to Set a Memory Watchpoint in KDS

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Set a Memory Watchpoint in KDS

300 Views
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?

Labels (1)
Tags (2)
0 Kudos
3 Replies

7 Views
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 Kudos

7 Views
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 Kudos

7 Views
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 Kudos