32
ImageCraft Assembly Language Guide, Document # 001-44475 Rev. *B
ImageCraft Assembler
3.5
Intel
®
HEX File Format
The Intel HEX file created by the ImageCraft Assembler is used as a platform-independent way of
distributing all of the information needed to program a PSoC microcontroller. In addition to the user
data created by the Assembler, the HEX file also contains the protection settings for the project that
will be used by the programmer.
The basic building block of the Intel HEX file format is called a record. Every record consists of six
fields as shown in
. All fields, except for the start field, represent information as ASCII
encoded hexadecimal. This means that every eight bits of information are encoded in two ASCII
characters.
The start field is one byte in length and must always contain a colon
(:
). The length field is also one
byte in length and indicates the number of bytes of data stored in the record. Because the length
field is one byte in length, the maximum amount of data stored in a record is 255 bytes which would
require 510 ASCII characters in the HEX file. The starting address field indicates the address of the
first byte of information in the record. The address field is 16 bits in length (four ASCII characters)
which allows room for 64 kilobytes of data per record.
Table 3-6. Intel HEX File Record Format
Field Number
Field Name
Length (bytes)
Description
1
start
1
The only valid value is the colon (:) character.
2
length
1
Indicates amount of data from 0 bytes to 255 bytes.
3
starting
address
2
4
type
1
“00”: data
“01”: end of file
“02”: extended segment address
“03”: start segment address
“04”: extended linear address
“05”: start linear address record
5
data
Determined by
length field
6
checksum
1
Summary of Contents for PSoC DESIGNER ImageCraft M8C
Page 6: ...6 ImageCraft Assembly Language Guide Document 001 44475 Rev B Contents Feedback ...
Page 10: ...10 ImageCraft Assembly Language Guide Document 001 44475 Rev B Introduction Feedback ...
Page 24: ...24 ImageCraft Assembly Language Guide Document 001 44475 Rev B M8C Microprocessor Feedback ...
Page 95: ...ImageCraft Assembly Language Guide Document 001 44475 Rev B 95 Assembler Directives Feedback ...
Page 96: ...96 ImageCraft Assembly Language Guide Document 001 44475 Rev B Assembler Directives Feedback ...
Page 104: ...104 ImageCraft Assembly Language Guide Document 001 44475 Rev B Feedback ...
Page 108: ...108 ImageCraft Assembly Language Guide Document 001 44475 Rev B Index Feedback ...