Intel Hex Object Format - Texas Instruments MSP430 User Manual

Gang programmer
Hide thumbs Also See for MSP430:
Table of Contents

Advertisement

Intel Hex Object Format

A.1

Intel Hex Object Format

The Intel hex object format supports 16-bit addresses and consists of a 9-character (4-field) prefix that
defines the start of record, byte count, load address, record type, and a 2-character sumcheck suffix.
The record types, which are represented in the 9-character prefix, are:
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
twos 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, the address, the record type (01), and the sumcheck.
To represent an address bus of more than 16 bits, other record types are defined:
02 = Extended Segment Address Record, segment-base address. Used when 16 bits is insufficient,
this mode is identical to 80x86 real-mode addressing. The address specified by the 02 record is
multiplied by 16 (shifted 4 bits left) and added to the subsequent 00 record address. This allows
addressing of up to one megabyte of address space. The address field of this record must be 0000,
the byte count is 02 (the segment is 16 bit). The least-significant hex digit of the segment address is
always 0.
04 = Extended Linear Address Record, allowing for fully 32-bit addressing. The address field is 0000,
the byte count is 02. The two data bytes represent the upper 16 bits of the 32-bit address, when
combined with the address of the 00 type record.
Start
Character
:10000001FF
Byte
Count
74
Hex File Formats
Address
Record
Type
Figure A-1. Intel Hex Object Format
Copyright © 2003–2010, Texas Instruments Incorporated
Sumcheck
SLAU101O – March 2003 – Revised May 2010
www.ti.com
Data
Records

Advertisement

Table of Contents
loading

This manual is also suitable for:

Msp-gang430

Table of Contents