2.2.26.3 MOTOROLA S-record
Industry standard file. File extension is ‘S’, such as file4.s
This format uses ASCII files, hex characters, and records to specify memory content in much the same way that Intel-Hex does. Refer to the Motorola S-record description document for more information on this format (search Motorola S-record description for several examples). The RAM Content Manager uses only the S1 through S3 record types; the others are ignored.
The major difference between Intel-Hex and Motorola S-record is the record formats, and some extra error checking features that are incorporated into Motorola S.
In both formats, memory content is specified by providing a starting address and a data set. The upper bits of the data set are loaded into the starting address and leftovers overflow into the adjacent addresses until the entire data set has been used.
The Motorola S-record is composed of 6 fields and arranged as follows:
Stllaaaa[dd...]cc
Where:
- ‘S’ : Is the start code of every Motorola S-record
- ‘t’ : Is record type, defines the data field
- ‘ii’ : Is the byte count of the data field
- ‘aaaa’ : Is a 16-bit address of the beginning of the memory position for the data. Address is big endian.
- ‘[dd...]’ : Is a sequence of n bytes of the data; n is equivalent to what was specified in the ll field
- ‘cc’ : Is the checksum of count, address,
and data Example Motorola S-Record:
S10a0000112233445566778899FFFA
Where 11 is the LSB and FF is the MSB.
