S-Records & Intel-HEX
2006-01-11 23:49
323 查看
转载自:http://ooooooo.blogbus.com/logs/2005/08/1361958.html
s-records原来是Motorola推出的一种标准文件格式。用来将数据从pc flash到目标平台,这在嵌入式上广为应用。
大致说一下s-records的格式:
s-records是文本文件格式的;
每一行都是一个s-records纪录;
每一行的开头都是大写的S;加上后面的一个数字,代表当前纪录的类型;
ps:ihex 也就是Intel HEX文件格式和s-records类似,也是用来下载代码的一种文件格式
算了,还是把从网上得到的格式文档拷贝过来吧(http://www.amelek.gda.pl/avr/uisp/srecord.htm):
The general format of an S-record follows:
+-------------------//------------------//-----------------------+
| type | count | address | data | checksum |
+-------------------//------------------//-----------------------+
type -- A char[2] field. These characters describe the type of record (S0, S1, S2, S3, S5, S7, S8, or S9).
count -- A char[2] field. These characters when paired and interpreted as a hexadecimal value, display the count of remaining character pairs in the record.
address -- A char[4,6, or 8] field. These characters grouped and interpreted as a hexadecimal value, display the address at which the data field is to be loaded into memory. The length of the field depends on the number of bytes necessary to hold the address. A 2-byte address uses 4 characters, a 3-byte address uses 6 characters, and a 4-byte address uses 8 characters.
data -- A char [0-64] field. These characters when paired and interpreted as hexadecimal values represent the memory loadable data or descriptive information.
checksum -- A char[2] field. These characters when paired and interpreted as a hexadecimal value display the least significant byte of the ones complement of the sum of the byte values represented by the pairs of characters making up the count, the address, and the data fields.
s-records原来是Motorola推出的一种标准文件格式。用来将数据从pc flash到目标平台,这在嵌入式上广为应用。
大致说一下s-records的格式:
s-records是文本文件格式的;
每一行都是一个s-records纪录;
每一行的开头都是大写的S;加上后面的一个数字,代表当前纪录的类型;
ps:ihex 也就是Intel HEX文件格式和s-records类似,也是用来下载代码的一种文件格式
算了,还是把从网上得到的格式文档拷贝过来吧(http://www.amelek.gda.pl/avr/uisp/srecord.htm):
The general format of an S-record follows:
+-------------------//------------------//-----------------------+
| type | count | address | data | checksum |
+-------------------//------------------//-----------------------+
type -- A char[2] field. These characters describe the type of record (S0, S1, S2, S3, S5, S7, S8, or S9).
count -- A char[2] field. These characters when paired and interpreted as a hexadecimal value, display the count of remaining character pairs in the record.
address -- A char[4,6, or 8] field. These characters grouped and interpreted as a hexadecimal value, display the address at which the data field is to be loaded into memory. The length of the field depends on the number of bytes necessary to hold the address. A 2-byte address uses 4 characters, a 3-byte address uses 6 characters, and a 4-byte address uses 8 characters.
data -- A char [0-64] field. These characters when paired and interpreted as hexadecimal values represent the memory loadable data or descriptive information.
checksum -- A char[2] field. These characters when paired and interpreted as a hexadecimal value display the least significant byte of the ones complement of the sum of the byte values represented by the pairs of characters making up the count, the address, and the data fields.
相关文章推荐
- S-record & Intel hex
- AT&T与INTEL的汇编语言语法的区别
- window汇编 linux汇编比较/intel汇编 GT&T汇编
- Intel Edison Debian 设置libmarr&upm
- ffmpeg AT&T汇编转intel汇编 之(emms_c)
- Inline Assembly(for GNU assembler)-the difference of AT&T & intel
- 10.80386指令-Intel格式和AT&T格式的指令格式
- AT&T 汇编和intel汇编的区别
- Intel HEX 格式解析
- CUDA Linux & eclipse & intel & Mosix
- Intel WiDi & Miracast hdmi receiver dongle
- ffmpeg AT&T汇编转intel汇编 之(read_time)
- Gentoo Linux安装--Intel型号CPU的CFlags设置(包括intel core i7 & i5)
- ARM&Intel
- 诺基亚与Intel结盟:Moblin+Maemo->MeeGo!
- AT&T 和 Intel 汇编语法的主要区别
- Intel格式和AT&T格式汇编区别
- AT&T与Intel汇编语言的比较
- 英特尔® 图形性能分析器(Intel® GPA)快速入门指南
- Intel的开源项目- Mobile & Internet Linux Project