µVISION: SETTING A WATCHPOINT ON A MEMORY LOCATION
Information in this article applies to:
In µVision, how do I set a watchpoint on a particular memory location? For example the CAN Control/Status Register at EF00H?
Attempting to use either C1CSR or
(*((unsigned int volatile sdata *) 0xEF00))
(used in CAN.H to define the register) fails.
In order to set a watchpoint on a memory location, you must enter the appropriate WATCHSET command into the Command window. The following command sets a watchpoint in Watch Window #1 on location EF00H:
WS 1, _RBYTE(0xEF00)
The manual may be obtained by clicking on the Books tab and choosing 'µVision Getting Started'.
Last Reviewed: Tuesday, July 19, 2005
of your data.