Intel-Hex Object Format

A.1 Intel-Hex Object Format

The Intel-hex object format supports 16-bit addresses and consists of a nine-character (four field) prefix that defines the start of record, byte count, load address, record type, and a two character sumcheck suffix.

The two record types, which are represented in the nine-character prefix, are described below:

00 = Data record (begins with the colon start character)

01 = End-of-file record

Record type 00, the data record, begins with the colon (:) start character and is followed by the byte count, the address of the first data byte, the record type (00), and the sumcheck. The sumcheck is the 2s complement (in binary) of the preceding bytes in the record, including the byte count, address, and data bytes.

Record type 01, the end-of-file record, also begins with the colon (:) start character. The colon is followed by the byte count, address, record type (01), and sumcheck.

Figure A−1. Intel-Hex Object Format

StartAddress

Character

:10000000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00

:10001000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0

:10002000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0

:10003000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFD0

:10004000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFC0

:10000001FF

Data Records

Byte

 

 

Sumcheck

Count

 

 

Record

 

 

Type

A-2

Page 46
Image 46
Texas Instruments MSP430 manual Figure A−1. Intel-Hex Object Format