MOTOROLA
Appendix F. S-Record Format Description
For More Information On This Product,
Go to: www.freescale.com
F-3
Examples
F.3
Examples
Following are some sample S-record entries broken into their parts with a short
explanation:
Example 1: S010000077726974656D656D2E73726563AA
Separated: S0-10-0000-77726974656D656D2E73726563-AA
Type: S0 - this is a header record Count: 10 - interpreted as 0x10; indicates that 16
character pairs follow Address: 0000 - interpreted as 0x0000. The address field for S0 is
always 0x0000. Data: Since this is a header record, the information can be interpreted in a
number of ways. It doesn't really matter since you usually don't use this field for anything
interesting. Checksum: AA - the checksum
Example 2: S21907000074000000700000003D20DEAD6129BEEF3C60000060E0
Separated: S2-19-070000-74000000700000003D20DEAD6129BEEF3C60000060-E0
Type: S2 - the record consists of memory-loadable data and the address should be
interpreted as 3 bytes Count: 19 - interpreted as 0x19; indicates that 25 character pairs
follow Address: 070000 - data will be loaded at address 0x00070000 Data: Memory
loadable data representing executable code Checksum: E0 - checksum
Example 2: S804070000F4
Separated: S8-04-070000-F4
Type: S8 - this is the record with the execution start address; also indicates we have
reached the end of our s-record Count: 04 - interpreted as 0x04; indicates that 4 character
pairs follow Address: 070000 - execution will begin at 0x00070000 Data: None - this
field is unused for S8 records. Checksum: F4 - checksum
F.4
Summary of Formats
Table F-2 summarizes the length (in characters, bytes) of each field for the different
S-record types. It is useful as a reference when parsing records manually during debug.
S8
The address field is interpreted as a 3-byte address and contains the execution start address. The data field
is unused.
S9
The address field is interpreted as a 2-byte address and contains the execution start address. The data field
is unused.
Table F-1. SRecord Formats (continued)
Type
Description
F
Freescale Semiconductor, Inc.
n
.