Keil Logo

µVISION DEBUGGER: VARIABLE DISPLAY PROBLEMS WITH LX51 LINKER


Information in this article applies to:

  • µVision Version 2.36

SYMPTOM

When debugging simple programs linked with the LX51 Linker, sometimes variables cannot be displayed in the µVision 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 µVision 2.36 which was included with C51 V7.06a.

RESOLUTION

This correction was integrated into C51 release 7.07.

FORUM THREADS

The following Discussion Forum threads may provide information related to this topic.

Last Reviewed: Thursday, May 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.