[go: up one dir, main page]

File: srec_ti_tagged.5

package info (click to toggle)
srecord 1.39-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 3,624 kB
  • ctags: 1,822
  • sloc: cpp: 18,283; sh: 5,839; makefile: 1,701; awk: 201; vhdl: 15
file content (227 lines) | stat: -rw-r--r-- 5,729 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
'\" t
.\"     srecord - manipulate eprom load files
.\"     Copyright (C) 2000, 2001, 2006, 2007 Peter Miller
.\"
.\"     This program is free software; you can redistribute it and/or modify
.\"     it under the terms of the GNU General Public License as published by
.\"     the Free Software Foundation; either version 3 of the License, or
.\"     (at your option) any later version.
.\"
.\"     This program is distributed in the hope that it will be useful,
.\"     but WITHOUT ANY WARRANTY; without even the implied warranty of
.\"     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
.\"     GNU General Public License for more details.
.\"
.\"     You should have received a copy of the GNU General Public License
.\"     along with this program. If not, see
.\"     <http://www.gnu.org/licenses/>.
.\"
.ds n) srec_ti_tagged
.TH \*(n) 5 SRecord "Reference Manual"
.SH NAME
srec_ti_tagged \- Texas Instruments Tagged (SDSMAC) file format
.XX "srec_ti_tagged(5)" "Texas Instruments Tagged (SDSMAC) file format"
.SH DESCRIPTION
This format is also known as the \f[I]TI-Tagged\fP or \f[I]TI-SDSMAC\fP format.
.PP
.\" ------------------------------------------------------------------------
This format allows binary files to be uploaded and downloaded between
two computer systems, typically between a computer system (such as a
PC, Macintosh, or workstation) and an emulator or evaluation board for
microcontrollers and microprocessors.
.SS The Lines
Unlike many other object formats, the lines themselves are not especially
significant.  The format consits of a number of \fItagged\fP fields,
and lines are composed of a series of these fields.
.TS
center,tab(;);
l l.
Tag;Description
_
*;T{
Data byte.
T}
:;T{
End of file.
T}
0;T{
File header (optional).
T}
7;T{
Checksum.
T}
8;T{
Dummy checksum (ignored).
T}
9;T{
Address.
T}
B;T{
Data word.
T}
F;T{
End of data record.
T}
K;T{
Program identifier (optional).
T}
.TE
.\" - - - - - - - - - - - - - - - - -
.br
.ne 2i
.SS Data Byte
.TS
allbox,center,tab(;);
lf(CW) lf(I) lf(I).
B;n;n
.TE
.sp 0.5
One byte of data.
The \fInn\fP is 8-bit big-endian hexadecimal.
.\" - - - - - - - - - - - - - - - - -
.br
.ne 2i
.SS End of File
.TS
allbox,center,tab(;);
lf(CW) l.
:;CRLF
.TE
.sp 0.5
The end of data is indicated by this tag.
The end of line sequence (LF on Unix systems, CRLF on PCs)
follows this tag.
.\" - - - - - - - - - - - - - - - - -
.br
.ne 2i
.SS File Header
.TS
allbox,center,tab(;);
lf(CW) lf(I) lf(I).
0;length;filename
.TE
.sp 0.5
The optional start-of-file record begins with a tag character ('0') and
a 12-character file header. The first four characters are the byte count
of the file data.  The remaining 8 characters are the name of the file
and may be any ASCII characters, blank padded.
.\" - - - - - - - - - - - - - - - - -
.br
.ne 2i
.SS Checksum
.TS
allbox,center,tab(;);
lf(CW) lf(I) lf(I) lf(I) lf(I).
7;n;n;n;n
.TE
.sp 0.5
The checksum is the 2s complement sum of the 8-bit ASCII values of
characters, beginning with the first tag character and ending with the
checksum tag character (7).
The \fInnnn\fP is 16-bit big-endian hexadecimal.
.\" - - - - - - - - - - - - - - - - -
.br
.ne 2i
.SS Dummy Checksum
.TS
allbox,center,tab(;);
lf(CW) lf(I) lf(I) lf(I) lf(I).
8;n;n;n;n
.TE
.sp 0.5
The checksum is the 2s complement sum of the 8-bit ASCII values of
characters, beginning with the first tag character and ending with the
checksum tag character (8).
The \fInnnn\fP is 16-bit big-endian hexadecimal.
.\" - - - - - - - - - - - - - - - - -
.br
.ne 2i
.SS Address
.TS
allbox,center,tab(;);
lf(CW) lf(I) lf(I) lf(I) lf(I).
9;n;n;n;n
.TE
.sp 0.5
Addresses may be given for any data byte, but none is mandatory.
The file begins at 0000 if no address is given before the first data field.
The \fInnnn\fP is 16-bit big-endian hexadecimal.
.\" - - - - - - - - - - - - - - - - -
.br
.ne 2i
.SS Data Word
.TS
allbox,center,tab(;);
lf(CW) lf(I) lf(I) lf(I) lf(I).
B;a;a;b;b
.TE
.sp 0.5
Two bytes of data.
The \fIaa\fP and \fIbb\fP are each 8-bit big-endian hexadecimal.
.\" - - - - - - - - - - - - - - - - -
.br
.ne 2i
.SS End of Record
.TS
allbox,center,tab(;);
lf(CW) l.
F;CRLF
.TE
.sp 0.5
The end of line sequence (LF on Unix systems, CRLF on PCs)
is escaped using this tag.
The checksum is reset to zero at this point.
.\" - - - - - - - - - - - - - - - - -
.br
.ne 2i
.SS Program Identifier
.TS
allbox,center,tab(;);
lf(CW) lf(I) lf(I) lf(I) lf(I) lf(I).
K;n;n;n;n;text
.TE
.sp 0.5
The program identifier can contain a brief description of the program, or
can be empty (\fIi.e.\fP the text portion is optional).  The \fInnnn\fP
length (hex) of the field includes the `K', the length and the text; it is at
least 5.
.\" - - - - - - - - - - - - - - - - -
.br
.ne 21
.SS Size Multiplier
In general, binary data will expand in sized by approximately 2.9 times
when represented with this format.
.\" ------------------------------------------------------------------------
.br
.ne 2i
.SH EXAMPLE
Here is an example TI-Tagged file.
It contains the data ``Hello, World'' to be loaded at address 0x0100.
.RS
.nf
.ft CW
K000590080B4865B6C6CB6F2CB2057B6F72B6C64*0A7F648F
:
.ft P
.fi
.RE
and here is another example from the
reference below
.RS
.nf
.ft CW
00050        7FDD4F
90000BFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFF7F400F
90010BFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFF7F3FFF
90020BFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFF7F3FEF
90030BFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFF7F3FDF
90040BFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFFBFFFF7F3FCF
:
.ft P
.fi
.RE
.\" ------------------------------------------------------------------------
.ds n) srec_cat
.SH SEE ALSO
http://www.dataio.com/pdf/Manuals/Unifamily/981-0014-016.pdf (page 6-33)
.so ../man1/z_copyright.so