ARM Technical Support Knowledge Articles

DEBUGGING W/DALLAS DS5250 MONITOR

Applies to: uVision Debugger

Answer


Information in this article applies to:


QUESTION

My application written for the Dallas Semiconductor DS5250-KIT evaluation board runs fine using the simulator, but when I download and try to debug with the Dallas Semiconductor  mon5250snx11.hex or mon5250snx22.hex monitors, the first instruction jumps to a strange address. What is wrong?

ANSWER

The Dallas Semiconductor DS5250 monitor automatically sets up the microcontroller for contiguous mode.  Because of this, the microcontroller misinterprets the initial jump address. Here's an easy way to get around this:

  1. Change your START390.A51 file as follows:
    ?C_STARTUP      LABEL   NEAR
    $IF MONITOR
                    LJMP    STARTUP1
    $ELSE
                    DB      02H     ; LJMP in Classic 8051 Mode
                    DW      WORD0 STARTUP1
                    RSEG    ?C_C51STARTUP
    $ENDIF
    
  2. Create a new Target in Project — Components, Environment and Books — Project Components, and set that new target as current.
  3. Add the Conditional Assembly Control Symbol MONITOR in Project — Options for Target — AX51.
  4. Build the new target.

Now, when you debug using this target, the first instruction will jump to the correct address.

MORE INFORMATION

SEE ALSO

Article last edited on: 2007-03-30 14:22:47

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