Keil Logo

µVISION: SETTING A WATCHPOINT ON A MEMORY LOCATION


Information in this article applies to:

  • C166 Version 4.02

QUESTION

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.

ANSWER

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)

MORE INFORMATION

  • Refer to pages 104 to 107 in the Getting Started and Creating Applications manual (07.99) for further information on _RBYTE and similar debug functions.

The manual may be obtained by clicking on the Books tab and choosing 'µVision Getting Started'.

Last Reviewed: Tuesday, July 19, 2005


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.