Emerson PMT1 Manuel D’Utilisation

Page de 128
Monitor:
 Remote Host Commands
10002367-02
PmT1 and PmE1 User’s Manual
8-19
pile, initiate and complete the download, and return to the monitor, all from one terminal. 
This is convenient for downloading, because a single control sequence issues a carriage 
return to the host and issues a download command to the PmT1 and PmE1.
call
allows execution of a program after a download from one of the board’s interfaces. This 
command allows up to eight arguments to be passed to the called address from the com-
mand line. Arguments can be symbolic, numeric, characters, flags, or strings. The default 
numeric base is hexadecimal.
If the application wants to return to the monitor, it should save and restore the processor 
registers. Also, it is important that special-purpose registers remain unchanged.
Description:
call address arg0 arg1 arg2 arg3 arg4 arg5 arg6 arg7
download
provides a serial download from a host computer to the board. 
Description:
download -[b,h,m] address
download uses binary, hex-Intel, or Motorola S-record format, as specified by the following 
flags:
Definition:
-b binary
(address not used)
-h hex-Intel
(load address in memory = address + record address)
-m Motorola S-record
(load address in memory = address + record address)
If no flag is specified, the default format is hex-Intel. 
Refer to page 8-20 for an example of how to configure the download port using NVRAM 
commands. “Binary Download Format” Section , “Hex-Intel Format” Section , and “Motor-
ola S-record Format” Section  
describe the download formats in detail.
Binary Download Format
The binary download format consists of two parts:
• Magic number (0x12345670) + number of sections
• Information for each section including: the load address (unsigned long), the section 
size (unsigned long), a checksum (unsigned long) that is the long word sum of the 
memory bytes of the data section.