Using Watchpoint to monitor memory

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

Using Watchpoint to monitor memory

2,134 Views
KirbyCurley
Contributor I
How does one set up a watchpoint to monitor if a specific value is being written to a location in memory?
 
For example:
Break if 0xA5 is being written to the byte address location 0xC0000?
 
I know how to setup a watchpoint for the address location, but don't know how to use the condition expression to break if 0xA5 is being written.  Using a c expression in this case doesn't make sense as it's a general location in memory.
Labels (1)
0 Kudos
2 Replies

281 Views
CompilerGuru
NXP Employee
NXP Employee
You forgot to mention which core and which version of CW you are using.
Does something like
*(unsigned char*)0xC0000 == 0xA5
as expression not work for you?

Daniel
0 Kudos

281 Views
KirbyCurley
Contributor I
Thanks Daniel.  That did it.
0 Kudos