![Axiom CML-5485 Скачать руководство пользователя страница 29](http://html.mh-extra.com/html/axiom/cml-5485/cml-5485_hardware-user-manual_3036878029.webp)
C M L - 5 4 8 5 U S E R M A N U A L V 1 . 0
0 6 / 2 2 / 0 5
28
After the DL command is invoked, the user should select file transfer or upload and send the
S-record file form the host. The host serial terminal software should apply XON/XOFF flow
control to the transfer if the target memory is Flash space to allow flash programming time
delays. Alternate method is to download with an offset into SDRAM memory space and then
apply the FL command to program the flash memory space.
DLDBUG – Download dBUG (update)
Usage: dldbug
The dldbug command is used to update the dBUG image in Flash memory. When updates to
the MCF5485 dBUG are available, the update S-record may be downloaded into the flash from
the console or serial port similar to the DL command. The user is prompted for verification
before performing the operation (note case sensitivity here). XON/XOFF serial flow control
must be applied when loading the new S-record. Use this command with extreme caution, as
any error can render dBUG useless!
DN - Download Network
Usage:
DN <-c> <-e> <-i> <-s> <-o offset> <filename>
The DN command downloads code from the network. The DN command will handle files that
are S-record, COFF, ELF or Image formats. The DN command uses Trivial File Transfer
Protocol (TFTP) to transfer files from a network host.
In general, the type of file to be downloaded and the name of the file must be specified to the
DN command. The
-c
option indicates a COFF download, the
-e
option indicates an ELF
download, the
-i
option indicates an Image download, and the
-s
indicates an S-record
download. The
–o
option works only in conjunction with the -s option to indicate an optional
offset for S-record download. The filename is passed directly to the TFTP server and therefore
must be a valid filename on the server.
If neither of the -c, -e, -i, -s or filename options are specified, then a default filename and file
type will be used. Default filename and file type parameters are manipulated using the SET
and SHOW commands.
The DN command checks the destination download address for validity. If the destination is an
address outside the defined user space, then an error message is displayed and downloading
aborted.
For ELF and COFF files that contain symbolic debug information, the symbol tables are
extracted from the file during download and used by
dBUG
. Only global symbols are kept in
dBUG
. The
dBUG
symbol table is not cleared prior to downloading, so it is the user’s
responsibility to clear the symbol table as necessary prior to downloading.
If an entry point address is specified in the S-record, COFF or ELF file, the program counter is
set accordingly.
Examples:
To download an S-record file with the name “srec.out”, the command is: