Using Watchpoint to monitor memory

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Using Watchpoint to monitor memory

2,637 次查看
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.
标签 (1)
0 项奖励
回复
2 回复数

784 次查看
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 项奖励
回复

784 次查看
KirbyCurley
Contributor I
Thanks Daniel.  That did it.
0 项奖励
回复