Download TR0131 ARM Embedded Tools Reference

Transcript
Object File Formats
The checksum calculation of S2 records is identical to S0.
S3 − record
With the linker option −ofilename:SREC:4, which is the default, the actual program code and data is supplied with S3 records,
with the following layout:
’S’ ’3’ <length_byte> <address> <code bytes> <checksum_byte>
The linker generates 4−byte addresses by default.
Example:
S3070000FFFE6E6825
| |
|
|_ checksum
| |
|_ code
| |_ address
|_ length
The linker has an option that controls the length of the output buffer for generating S3 records.
The checksum calculation of S3 records is identical to S0.
S7 − record
With the linker option −ofilename:SREC:4, which is the default, at the end of an S−record file, the linker generates an S7 record,
which contains the program start address. S7 is the corresponding termination record for S3 records.
Layout:
’S’ ’7’ <length_byte> <address> <checksum_byte>
Example:
S70500000000FA
| |
|_checksum
| |_ address
|_ length
The checksum calculation of S7 records is identical to S0.
S8 − record
With the linker option −ofilename:SREC:3, at the end of an S−record file, the linker generates an S8 record, which contains the
program start address.
Layout:
’S’ ’8’ <length_byte> <address> <checksum_byte>
Example:
S804FF0003F9
| |
|_checksum
| |_ address
|_ length
The checksum calculation of S8 records is identical to S0.
S9 − record
With the linker option −ofilename:SREC:2, at the end of an S−record file, the linker generates an S9 record, which contains the
program start address. S9 is the corresponding termination record for S1 records.
Layout:
’S’ ’9’ <length_byte> <address> <checksum_byte>
7−3