ImageCraft Assembly Language Guide, Document # 001-44475 Rev. *B
33
ImageCraft Assembler
All HEX files created by the ImageCraft Assembler have the structure shown in
. Each row
in the table describes a record type used in the HEX file. Each record type conforms to the record
definitions discussed previously.
Table 3-7. PSoC Microcontroller Intel HEX File Format
Record
Description
<data record 1: flash data>
This is the first of many data records in the HEX file that
contain Flash data.
<data record n: flash data>
The nth record containing data for Flash (last record).
The total number of data records for Flash data can be
determined by dividing the available Flash space (in
bytes) by 64. Therefore, a 16 KB part would have a HEX
file with 256 Flash data records.
:020000040010ea
The first two characters (02) indicate that this record has
a length of two bytes (4 ASCII characters). The next four
characters (0000) specify the starting address. The next
two characters (04) indicate that this is an extended lin-
ear address. The four characters following 04 are the
data for this record. Because this is an extended linear
address record, the four characters indicate the value for
the upper 16 bits of a 32-bit address. Therefore, the value
of 0x0010 is a 1 MB offset. For PSoC microcontroller
HEX files, the extended linear address is used to offset
Flash protection data from the Flash data. The Flash pro-
tection bits start at the 1 MB address.
<data record 1: protection bits>
For PSoC devices with 16 KB of Flash or less, this is the
only data record for protection bits.
<data record m: protection bits>
For PSoC devices with more than 16 KB of Flash, there
will be an additional data record with protection bits for
each 16 KB of additional Flash.
:020000040020da
This is another extended linear address record. This
record provides a 1 MB offset from the Flash protection
bits (absolute address of 2 MB).
<data record: checksum>
This is a two-byte data record that stores a checksum for
all of the Flash data stored in the HEX file. The record will
always start with :0200000000 and end with the four
characters that represent the two-byte checksum.
:00000001ff
This is the end-of-file record. The length and starting
address fields are all zero. The type field has a value of
0x01 and the checksum value will always be 0xff.
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 ...