|
|
Technical Support
Support Resources
Product Information
|
MON390: Downloading MON390 Into the Maxim/Dallas TINI Board Using Keil
Information in this article applies to:
- C51 All Versions
- C51 Version 7.04
QUESTION
How do I download the mon390 program onto the Maxim (formerly
Dallas Semiconductor) TINI board?
ANSWER
Follow these steps to download and run the Mon390 onto the Maxim
(formerly Dallas Semiconductor) TINI evaluation board.
Setting Up the Hardware
-
The Dallas TINI board uses a 5V, 250 mA, center positive power
supply.
-
Make sure the jumpers are set correctly, in particular Jumper
4 which must be set to program the flash. Here are the default
jumper settings for the TINI board (1 is connected, 0 is
open):
J21 00000
00000
J6 000
J4 000
J3 00
J9 0
1
1
J10 0
1
1
J11 0
1
1
J5 00
J4 11
J20 00000
00000
-
There are two serial ports on the TINI board, the first is
labeled 'Loader - Serial 0' This is the serial port that is used to
program the TINI board.
-
The second serial port on the TINI port has no label, but is
referred to as Serial 1. Mon390 will use this port to communicate
from the board to the PC. Use of this port requires a DB9 male to
female null modem adaptor. A null modem adaptor crosses signals
so that like-wired devices can communicate with each other. A
null modem adaptor is different than a gender changer.
Generate the Keil Monitor 390 Hex File for the Dallas TINI
Board
-
On your hard drive, open
\Keil\C51\MON390\Tinim400\mon400.Uv2.
-
Go to Project -> 'Rebuild all target files'. This will
create a hex file of the monitor program. It will be located at:
\Keil\C51\MON390\Tinim400\mon400.hex. This monitor project is
preconfigured for the Maxim TINI board, so there is no need to
change any settings in this project.
Using the Dallas Microcontroller Tool Kit
(MTK)
-
From Dallas: " [MTK] allows an embedded system designer
communicate with the bootstrap loader of the Secure Microcontroller
family or other Dallas Semiconductor Flash-based microcontrollers
through the serial port of a PC."
-
Download and install the latest version of the Dallas
Microcontroller Tool Kit (MTK) from the Dallas Website.
-
Open MTK, and a screen will prompt to select a device. Select
the 'tini' device from the list and press the 'OK' Button.
-
The main MTK window will open. The window background should be
grey. The following assumes that COM 1 of the PC will be
connected to Loader: Serial 0 of the board, and COM 2 of the PC
will be connected to Serial 1 of the board.
-
Go to Options -> Properties, and select Port: 'Com 1' and
Speed: '115200'
-
Go to Tini -> 'Tini Options', and press the '400 Defaults'
Button. Press OK. This concludes configuring MTK.
-
Go to Tini -> 'Open COM1 at 115200 baud'. The window
background should turn white.
-
Go to File -> 'Load Hex'. Open the folder at
\Keil\C51\MON390\Tinim400\, and select 'mon400.hex'. Press OK.
-
MTK will begin loading the hex file The main window should
display:
Loading file \Keil\C51\MON390\Tinim400\mon400.hex...
Loading Bank 47...
Load complete.
-
At the prompt in the main screen (the '>') type the letter
'E'. This will run the monitor program that now resides in bank
47. The monitor will not run unless you type 'E' here.
Debugging your Project
-
Open up the Keil project you wish to debug with the
monitor.
-
Go to Project -> options for target -> debug tab. On the
right hand side of the screen select ' MON390: Dallas Contiguous
Mode' from the pull down menu. Press the 'Settings' button. Select
Port: 'Com 2' and baudrate '115200'. Note the monitor is configured
to only connect at 115200. Press the 'OK' buttons.
-
Go to Debug -> 'Start/Stop Debug Session'. Keil will connect
with the monitor, and download your application.
SEE ALSO
Last Reviewed: Thursday, February 25, 2021
|
|
|