7.3. Appendix C: Program Download Protocol
Download code files can be generated by converting the "*.ABS" file to "*.CNV" using:
C:\>lmc907a.exe.exampl.abs".
A file containing so called "S-record" or "HEX-records" should be written.
The evaluation board provides two different protocols in two formats for program download.
7.3.1.
HexLine Command
e.g. >:10200000FFEEDDCCBBAA99887766554433221100F8↵
can be entered as a command. The ':' is interpreted as a download command and the specified
data will be transferred into memory. The correct format and included checksum are checked!
Note, that a download program using this mechanism must read the echo of each character and
that the completing CR is echoed as CR-LF.
NOTE: This record contains only a 16 Bit address. Therefore a special record indicating the
bank has to be sent, before an undefined address is written to.
Another format is started by 'S':
e.g. S2FF200011FFEEDDCCBBAA99887766554433221100D7↵
7.3.2.
HexFile Download (HEXDWL)
The HexFile Download function works similar as the previous command, however :
•
a dedicated download function is activated by sending the command 'HEXDWL↵
•
Note, that the printable characters of the command are echoed, the CR (ASCII 13)is not
echoed!
•
a hex-line is transferred (but no character is echoed !)
•
when the monitor has processed the hex-line, it will send the acknowledge character (06H).
•
then the next hex-line can be transferred.
•
The hex download function terminates if ESCAPE (ASCII 27) or a record with length 0
was downloaded.
•
A checksum is built over each line and the monitor will respond with a not-acknowledge
character (05H) if an error occurs.
NOTE: This function is used by ProMan
To download with the HEXLOAD.EXE program recommended use is:
C:\>hexload 2 -a -f examp1.cnv
This loads the examp1.cnv record file over PC-port COM2. HEXLOAD tests the current baud
rate (-a) of the Evaluation Board and after connecting it switches to 38400 Baud for
transmission. Finally, it returns to the previous baud rate.
© FUJITSU Mikroelektronik GmbH 1996
FUJITSU MB90675-Evaluation Board - User Manual
©
.
- 59 -