
AN3338| Application Note
Maxim/Dallas > App Notes > MICROCONTROLLERS Keywords: DS5250, DS5240, Keil, uVision, uVision2, debug, debugger
Sep 08, 2004
APPLICATION NOTE 3338
Using the Keil uVision Debugger with the DS5250
Abstract: This application note describes how to use the Keil uVision2 suite of tools to debug an application for the DS5250 High-Speed Secure microcontroller. This process involves loading a debug monitor application into the DS5250 which communicates with Keil uVision2 over a selected serial port.
Overview
This application note describes how to use the Keil uVision2 suite of tools to debug an application for the DS5250 High-Speed Secure microcontroller. The process involves loading a debug monitor application into the DS5250 which communicates with Keil uVision2 over a selected serial port. All development for this application note was done using the DS5250 and the DS52x0 Evaluation Kit Board (Rev A). The C application was created and compiled using Keil's uVision2 version 2.40 and the Keil C51 Compiler version 7.10. The debugging monitor was loaded into the DS52x0 Evaluation Kit Board RAM using the Microcontroller Tool Kit (MTK) version 2.2.0.
Installing the Keil Debugging Monitor
There are three different variations of the Keil debugging monitor available for the DS5250, depending on which serial port will be used to communicate with Keil uVision2 on the host PC. This serial port will be unavailable for use by the application under debug. Serial Port Used Serial Port 0 Serial Port 0 Serial Port 1 Serial Port 1 Timer Used Crystal Speed Monitor File Name Timer 1 Timer 1 Timer 1 Timer 1 11.0592 MHz 22.1184 MHz 11.0592 MHz 22.1184 MHz Any mon5250s0x11.hex mon5250s0x22.hex mon5250s1x11.hex mon5250s1x22.hex mon5250s2.hex
External Serial Port 2 None
To obtain these files, please contact the microcontroller technical support group at micro.support@dalsemi.com. Before loading the selected debugging monitor on the DS52x0 Evaluation Kit board, set the board up as follows:
q q q
q
A 6-9 volt DC power supply (center post positive) should be connected to power plug J1. A straight-through, DB9 serial cable should be connected from J3 (SERIAL 0) to COM1 on the host PC. A 11.0592 MHz or 22.1184 MHz crystal should be inserted. (A different crystal speed may be used, but this will result in a different baud rate when communicating with the loader.) All DIP switches should be OFF except for A1-A4, B1, and B2 which should be ON.
Next, install the Microcontroller Tool Kit (MTK) software package, which is available at http://www.maxim-ic.com/ products/microcontrollers/software/index.cfm To load the debugging monitor: 1. Open MTK. In the microcontroller type dialog, select DS5240/50.
AN3338 Application Note maxim Download PDF
Add this permalink to your bookmarks for future download of AN3338 ApplicationNote
Permalink: http://application.emcelettronica.com/maxim/AN3338