ARM Technical Support Knowledge Articles

VARIABLE DISPLAY PROBLEMS WITH LX51 LINKER

Applies to: uVision Debugger

Answer


Information in this article applies to:


SYMPTOM

When debugging simple programs linked with the LX51 Linker, sometimes variables cannot be displayed in the uVision Debugger. For example, in the following program:

void main (void)
{
volatile int xxx = 10;

while (1)
  {
  xxx++;
  }
}

the variable xxx cannot be viewed or watched in the debugger.

This problem usually occurs at optimizer level 8 and above or when linker code packing is enabled. The generated code is correct. The only problem is that the debugger cannot display the values of some local variables.

CAUSE

This was a problem in the S8051.DLL file provided with uVision 2.36 which was included with C51 V7.06a.

RESOLUTION

This correction was integrated into C51 release 7.07.

Article last edited on: 2005-05-19 07:58:00

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