Remote Host Commands
10-37
10.9.2 download
download -[b,h,m]
address
provides a serial download from a host computer to
the board.
download
uses binary, hex-Intel, or Motorola S-record format, as
specified by the following flags:
-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 Section 10.7.7 for an example of how to configure the download port
using NVRAM commands. Sections 10.9.3, 10.9.4, and 10.9.5 describe the down-
load formats in detail.
DEFINITION
int DownLoad(char Flag,
unsigned long Address)
10.9.3 Binary Download Format
The binary download format consists of two parts:
•
Magic number (which is 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.
NOTE.
If you download from a UNIX host in binary format, be sure to disable
the host from mapping carriage return <cr> to carriage return line feed
<cr-lf>. The download port is specified in the nonvolatile memory
configuration.
10.9.4 Hex-Intel Download Format
Hex-Intel format supports addresses up to 20 bits (one megabyte). This format
sends a 20-bit absolute address as two (possibly overlapping) 16-bit values. The
least significant 16 bits of the address constitute the offset, and the most signifi-
cant 16 bits constitute the segment. Segments can only indicate a paragraph,
which is a 16-byte boundary. Stated in C, for example:
address = (segment << 4) + offset;
Содержание BajaPPC-750
Страница 2: ...BajaPPC 750 PowerPC Based Single Board Computer User s Manual May 2002...
Страница 4: ...BajaPPC 750 PowerPC Based Single Board Computer User s Manual May 2002...
Страница 7: ......
Страница 16: ...0002M621 15 ix Register Map 9 1 Counter Timer Status CTSR 9 2 Register Map 9 2 Counter Timer Mode CTMR 9 4...
Страница 19: ...xii BajaPPC 750 Contents...
Страница 57: ...3 12 BajaPPC 750 Central Processing Unit May 2002...
Страница 77: ...5 12 BajaPPC 750 PMC PCI Interface May 2002...
Страница 111: ...6 34 BajaPPC 750 VMEbus Interface May 2002...
Страница 135: ...8 18 BajaPPC 750 Serial and Parallel I O May 2002...
Страница 207: ...10 68 BajaPPC 750 Monitor May 2002...