Keil Logo

µVISION DEBUGGER: DEBUGGING W/DALLAS DS5250 MONITOR


Information in this article applies to:

  • C51 — All versions

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

  • Refer to Project in the µVision3 User's Guide.

Last Reviewed: Friday, March 30, 2007


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.