?? srec.htm
字號:
<title>Motorola S-Record Format</title> <h1 align=center>Motorola S-Record Format</h1><!--INDEX symbols "S3 records" "S4 records" "Motorola S-records" --><!--INDEX "S-record format" -->Motorola S-records are an industry-standard format for transmitting binary files to target systems and PROM programmers. LSI Logic have extended this standard to include an S4-record containing an address and a symbol. <p>The extended S-record standard is as follows:<p><pre>S<type><length><address><data....><checksum>S4<length><address><name>,<checksum></pre>Where:<p><dl><dt> type <dd>is the record type. Where:<p> <dl compact> <dt>0<dd>starting record (optional) <dt>1<dd>data record with 16-bit address <dt>2<dd>data record with 24-bit address <dt>3<dd>data record with 32-bit address <dt>4<dd>symbol record (LSI extension) <dt>5<dd>number of data records in preceeding block <dt>6<dd>unused <dt>7<dd>ending record for S3 records <dt>8<dd>ending record for S2 records <dt>9<dd>ending record for S1 records </dl><p><dt>length <dd>is two hex characters. This defines the length of the record in bytes (not characters). It includes the address field, the data field, and the checksum field. <p><dt>address <dd> is 4, 6, or 8 characters. Corresponding to a 16-, 24-, or 32-bit address. The address field for S4 records is always 32 bits. <p><dt>data <dd>Are the data bytes. Each pair of hex characters represent one byte in memory.<p><dt>name <dd>Is the symbol name. The symbol is terminated by a ','.<p><dt>checksum <dd>Is the one's complement of the 8-bit checksum.<p></dl><p><h2>Example</h2><pre>S0030000FC..S325000004403C0880018D08DD900000000011000026000000003C0880012508DC50C50000B401S32500000460C50100B8C50200BCC50300C0C50400C4C50500C8C50600CCC50700D0C50800D4FAS32500000480C50900D8C50A00DCC50B00E0C50C00E4C50D00E8C50E00ECC50F00F0C51000F49AS325000004A0C51100F8C51200FCC5130100C5140104C5150108C516010CC5170110C518011434..S70500000000FA</pre><p>The S0 record starts the file. The S3 records contain the data. The S7 record contains the entry address and terminates the download.<p><h2>Generating S-record files</h2>The PMON source package contains two mechanisms for generatingS-record files.<p><ul><li>The <a href="tools/pmcc.htm">"pmcc -srec"</a> command.<li>The <a href="tools/gensrec.htm">gensrec</a> command.</ul>The program gensrec converts MIPS ECOFF files into Motorola S-Records.Thus, if used in conjunction with the command <ahref="tools/gencoff.htm">gencoff</a>, it is possible to convert anarbitrary file into Motorola S-Records using the followingprocedure:<p><pre> gencoff -T80050000 file.bin -o file.cof gensrec file.cof > file.rec</pre><p>This example will convert the file "file.bin" to "file.rec", which willdownload to 0x80050000.<p><h2>See Also</h2>S-record reader - <a href="tools/rdsrec.htm">rdsrec</a>S-record generator - <a href="tools/gensrec.htm">gensrec</a>COFF generator - <a href="tools/gencoff.htm">gencoff</a></dl><p><hr><b>Navigation:</b> <a href="index.htm">Document Home</a> | <a href="doctoc.htm">Document Contents</a> | <a href="docindex.htm">Document Index</a> <p>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -