13.07.2015 Views

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Object File FormatsS0 - recordS0length0000commentchecksumA linker generated S-record file starts with an S0 record with the following contents:l k a r mS00800006C6B61726DE0The S0 record is a comment record and does not contain relevant in<strong>for</strong>mation <strong>for</strong> program execution.where:S0lengthcommentchecksumis a comment record and does not contain relevant in<strong>for</strong>mation <strong>for</strong> programexecution.represents the number of bytes in the record, not including the record type andlength byte. This value occupies one byte (two hexadecimal digits).contains the name of the linker.is the record checksum. The linker computes the checksum by first adding thebinary representation of the bytes following the record type (starting with the lengthbyte) to just be<strong>for</strong>e the checksum. Then the one's complement is calculated of thissum. The least significant byte of the result is the checksum. The sum of all bytesfollowing the record type is 0xFF.S1 / S2 / S3 - recordThis record is the program code and data record <strong>for</strong> 2-byte, 3-byte or 4-byte addresses respectively.S1lengthaddresscode byteschecksumS2lengthaddresscode byteschecksumS3lengthaddresscode byteschecksumwhere:S1S2S3lengthaddresscode byteschecksumis the program code and data record <strong>for</strong> 2-byte addresses.is the program code and data record <strong>for</strong> 3-byte addresses.is the program code and data record <strong>for</strong> 4-byte addresses (this is the default).represents the number of bytes in the record, not including the record type andlength byte. This value occupies one byte (two hexadecimal digits).contains the code or data address.contains the actual program code and data.is the record checksum. The checksum calculation is identical to S0.799

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!