ARM Technical Support Knowledge Articles

WATCH VARIABLES DO NOT DISPLAY

Applies to: uVision Debugger

Answer


Information in this article applies to:


QUESTION

I have the following function:

void receive_data (char MsgNum) {
  static struct CanMsg sMsg;

  ...
}

When I am in the function, the watch window displays this variable without any problems. But when I restart the debugger, the watch window does not get restored.

What can be wrong?

ANSWER

The variable that you view in the watch window is a local variable that is defined locally in a function. You need therefore to enter it as a fully qualified symbol with:

ModuleNameFunctionNameSymbolName

This is explained under Program Variables (Symbols) in the µVision User's Guide.

MORE INFORMATION

SEE ALSO

Article last edited on: 2006-11-15 10:33:16

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