
E86MON
Software User
’
s Manual
2-2
2
Downloading .HEX Files
There are four example .HEX files you can download. The files are located in the
\OUT subdirectory on the floppy disk that was provided in the board kit.
AMDDHRY.HEX
SECONDS.HEX
TESTMON.HEX
LEDS.HEX
A RAM-based DHRYSTONE benchmark
A RAM-based seconds counter
A RAM-based minimal DOS emulator test
A Flash-memory-based demonstration
The source code for all these files is under the \SAMPLES subdirectory. The
E86MON software supports the downloading of Intel extended .HEX files into
RAM or Flash memory. The .HEX file should contain type 2 extended address
records, which specify the load address in the 1 Mbyte address range. The last
record in the file should be a type 1 EOF record.
A file being downloaded to RAM for execution should be located between 410h
and the start of the monitor data at the end of the RAM (see Figure 1-3 on page
1-7). A file being downloaded to Flash memory for execution should be located
between the start of the Flash memory and E0000h (see Figure 1-2 on page 1-5).
The
I
command shows the size and location of the free RAM, as well as information
about the size and location of the Flash memory.
It is not permissible for the file to have some sections download to RAM and other
sections download to Flash memory because the E86MON software relocates itself
to RAM (destroying any loaded RAM program) to burn the Flash when it is
downloading to Flash memory. The E86MON software reports a range error on
the download of such a file.
If downloading into Flash memory, you should first make sure the target download
area is empty by using the
X
command to erase the Flash sectors. Unless you are
storing multiple programs into Flash, the easiest way to do this is to use
XA
to
erase all the application sectors. Note that if sectors are protected with the
protectflash variable, the
XA
command does not erase them (see page 3-22).
However, they can be erased with the
X
number
command, where
number
is the
sector number.
If your application requires DOS int21 support, make sure the monitor extensions
are loaded before downloading the application (see the
LL
command).