ARM Technical Support Knowledge Articles

SETTING A WATCHPOINT ON A MEMORY LOCATION

Applies to: uVision IDE

Answer


Information in this article applies to:


QUESTION

In uVision, 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

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

Article last edited on: 2005-07-19 10:05:02

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential