Add comments and tiny improvements to STM32 flash loader algorithm
[openocd.git] / src / server / httpd / support.tcl
1 # converted to .tcl by html2tcl.tcl
2 set buffer ""
3 append buffer {
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 <html xmlns="http://www.w3.org/TR/REC-html40">
72 <head>
73 <title>Zylin ZY1000 JTAG debugger</title>
74 <meta charset="utf-8" content="text/html" http-equiv="Content-Type"/>
75 <link type="text/css" rel="stylesheet" href="/ram/cgi/zylweb.css"/>
76 </head>
77 }
78
79 set console ""
80 set upload_filename /ram/upload
81
82 append buffer {
83 <body style="margin:0px;">
84 <div style="width:974px;height:85px;">
85 <div style="float:left;position:relative;left:32px;width:478px;">
86 <a href="/">
87 <img src="/rom/menu_cuts/logo_top.png" style="border:0px;"/>
88 </a>
89 </div>
90 <div style="float:left;position:relative;height:26px; width:278px;left:122px;background-image:url('/rom/menu_cuts/top_right.png');">
91 <div style="position:relative;left:15px;top:4px;" class="textlight">
92 }
93 append buffer [capture zy1000_version]
94 append buffer {
95 </div>
96 </div>
97 </div>
98 <table style="padding:0px;border-collapse:collapse;">
99 <tr>
100 <td style="width:33px;">
101 <div style="width:20px;height:510px;">
102 &nbsp;
103 </div>
104 </td>
105 <td style="vertical-align:top;height:100%;width:140px;padding:0px;">
106 <table style="padding:0px;border-collapse:collapse;height:100%;width:140px;">
107 <tr style="height:59px;">
108 <td/>
109 </tr>
110 <tr>
111 <td style="width:140px;height:38px;background-image:url('/rom/menu_cuts/v_tab.png');background-repeat: no-repeat;">
112 <div style="position:relative;left:10px;top:10px;font-weight:bold;">
113 <a href="zy1000.tcl" style="">Set IP Address</a>
114 </div>
115 </td>
116 </tr>
117 <tr>
118 <td style="width:140px;height:38px;background-image:url('/rom/menu_cuts/v_tab.png');background-repeat: no-repeat;">
119 <div style="position:relative;left:10px;top:10px;font-weight:bold;">
120 <a href="upgrade.tcl" style="">ZY1000 Firmware</a>
121 </div>
122 </td>
123 </tr>
124 <tr>
125 <td style="width:140px;height:38px;background-image:url('/rom/menu_cuts/v_tab.png');background-repeat: no-repeat;">
126 <div style="position:relative;left:10px;top:10px;font-weight:bold;">
127 <a href="editfile.tcl" style="">Edit File</a>
128 </div>
129 </td>
130 </tr>
131 <tr>
132 <td style="width:140px;height:38px;background-image:url('/rom/menu_cuts/v_tab_selected.png');background-repeat: no-repeat;">
133 <div style="position:relative;left:10px;top:10px;font-weight:bold;">
134 <a href="support.tcl" style="font-weight: bold;">Support Request</a>
135 </div>
136 </td>
137 </tr>
138 <tr>
139 <td style="width:140px;height:38px;background-image:url('/rom/menu_cuts/v_tab.png');background-repeat: no-repeat;">
140 <div style="position:relative;left:10px;top:10px;font-weight:bold;">
141 <a href="log.tcl#tail" style="">View Tail of Log</a>
142 </div>
143 </td>
144 </tr>
145 <tr>
146 <td style="width:140px;height:35px;background-image:url('/rom/menu_cuts/v_1.png')"/>
147 </tr>
148 <tr>
149 <td style="width:140px;background-image:url('/rom/menu_cuts/v_2_tile.png')"/>
150 </tr>
151 <tr>
152 <td style="width:140px;height:140px;background-image:url('/rom/menu_cuts/v_3.png')"/>
153 </tr>
154 </table>
155 </td>
156 <td style="vertical-align:top;padding:0px;height:100%">
157 <table style="padding:0px;border-collapse:collapse;height:100%;">
158 <tr>
159 <td>
160 <table style="padding:0px;border-collapse:collapse;">
161 <tr>
162 <td style="width:103px;height:29px;background-image:url('/rom/menu_cuts/h_tab1.png');background-repeat: no-repeat;">
163 <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
164 <a href="/ram/cgi/index.tcl">Config Target</a>
165 </div>
166 </td>
167 <td style="width:103px;height:29px;background-image:url('/rom/menu_cuts/h_tab1.png');background-repeat: no-repeat;">
168 <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
169 <a href="/ram/cgi/flashinfo.tcl">Flash</a>
170 </div>
171 </td>
172 <td style="width:103px;height:29px;background-image:url('/rom/menu_cuts/h_tab1.png');background-repeat: no-repeat;">
173 <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
174 <a href="/ram/cgi/browsemem.tcl">Memory</a>
175 </div>
176 </td>
177 <td style="width:103px;height:29px;background-image:url('/rom/menu_cuts/h_tab1.png');background-repeat: no-repeat;">
178 <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
179 <a href="/ram/cgi/openocd.tcl">OpenOCD</a>
180 </div>
181 </td>
182 <td style="width:103px;height:29px;background-image:url('/rom/menu_cuts/h_tab1_selected.png');background-repeat: no-repeat;">
183 <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
184 <a href="/ram/cgi/zy1000.tcl" style="font-weight: bold;">Setup ZY1000</a>
185 </div>
186 </td>
187 </tr>
188 </table>
189 </td>
190 </tr>
191 <tr>
192 <td style="height:30px;width:535px;background-image:url('/rom/menu_cuts/center_top.png');background-repeat: no-repeat;background-position:top right;" colspan="6">
193 <div style="width:500px;background-color:#ffffff;height:100%;">
194 &nbsp;
195 </div>
196 </td>
197 </tr>
198 <tr>
199 <td style="background-color:#ffffff;text-indent:30px;height:40px;" colspan="6">
200 <H1>Submit Support Request</H1>
201 </td>
202 </tr>
203 <tr style="height:100%;">
204 <td style="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;" colspan="6">
205 Before contacting Zylin, please submit a support request with relevant information.
206 }
207
208
209 set form_config [load_config "target/[load_target]"]
210 set support_id [string range [rand] 0 7]
211 set form_log ""
212 append form_log "Version: [capture "zy1000_version zy1000"]"
213 append form_log "OpenOCD version: [capture "zy1000_version openocd"]"
214 append form_log "Version date: [capture "zy1000_version date"]"
215 append form_log [log]
216
217 append buffer {
218
219 <form action="supportrequest.tcl" method="POST" target="_blank">
220 <input TYPE="hidden" NAME="id" VALUE="}
221 append buffer $support_id
222 append buffer {">
223 <input TYPE="hidden" NAME="success" VALUE="http://www.zylin.com/zy1000_support.html">
224 <input size="50" name="subject" type="hidden" value="ZY1000 support request">
225 <table cellspacing="5">
226 <tr><td>Support ID</td><td>}
227 append buffer $support_id
228 append buffer {</td></tr>
229 <tr><td>Contact person</td><td><input size="50" name="name" type="text"></td></tr>
230 <tr><td>Phone</td><td><input size="50" name="phone" type="text"></td></tr>
231 <tr><td>email</td><td><input size="50" name="email" type="text"></td></tr>
232 <tr><td>MAC address</td><td><input size="50" name="serial" type="text" value="}
233 append buffer [mac]
234 append buffer {"></td></tr>
235 </td></tr>
236 </table>
237 <p>
238 Summary:
239 <p>
240 <input name="summary" size="50">
241 <p>
242 Description:
243 <p>
244 <textarea style="overflow:auto;font-size:11px;" name="description" cols="50" rows="4" type="textarea" wrap="off"></textarea>
245
246 <p>
247 Log:<p>
248 <textarea style="overflow:auto;font-size:11px;" name="log" cols="50" rows="5" type="textarea" wrap="off">}
249 append buffer $form_log
250 append buffer {</textarea>
251 <p>
252 Config:<p>
253 <textarea style="overflow:auto;font-size:11px;" name="config" cols="50" rows="5" type="textarea" wrap="off">}
254 append buffer $form_config
255 append buffer {</textarea>
256 <p>
257 </form>
258 <p>
259 <input value="Creates support request" type="submit"/></td></tr>
260
261
262 </td>
263 </tr>
264 }
265
266
267 set toggle_details [formfetch toggle_details]
268 if {[string length $toggle_details]==0} {
269 set toggle_details 0
270 }
271 set show_details [load_var show_details]
272 if {[string length $show_details]==0} {
273 set show_details 0
274 }
275 if {$toggle_details==1} {
276 set show_details [expr 1-$show_details]
277 save_var show_details $show_details
278 }
279
280 if {[string length $console]!=0} {
281
282 append buffer {
283 <tr style="height:100%;">
284 <td style="height:100%;background-color:red;" colspan="6">
285 <table style="padding:0px;border-collapse:collapse;background-color:#ffffff;width:100%" class="textgray">
286 <td style="width:25px;">&nbsp;</td>
287 }
288
289 if {$show_details==1} {
290 append buffer <
291 append buffer {td style="background-color:#dddddd;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;"}
292 append buffer >
293 } else {
294 append buffer <
295 append buffer {td style="background-image:url('/rom/menu_cuts/h_tab_free.png');width:110px;height:29px;background-repeat: no-repeat;background-position:top left;"}
296 append buffer >
297 }
298
299 append buffer {
300 <a class="openocd" href="/ram/cgi/support.tcl?toggle_details=1">
301 }
302
303 if {$show_details==1} {
304 append buffer "Hide details"
305 append buffer <br/>
306 } else {
307 append buffer {<div style="position:relative;top:7px;text-align:center;">}
308 append buffer "Show details"
309 append buffer {</div>}
310 }
311
312 append buffer {
313 </a>
314 }
315
316 if {$show_details==1} {
317 append buffer $console
318 }
319
320 append buffer {</td>}
321
322 if {$show_details!=1} {
323 append buffer {<td>&nbsp;</td>}
324 }
325
326 append buffer {
327 <td style="width:25px;">&nbsp;</td>
328 </table>
329 </td>
330 </tr>
331 }
332
333 }
334
335 append buffer {
336 <tr>
337 <td style="height:30px;background-image:url('/rom/menu_cuts/center_bottom.png');background-repeat: no-repeat;background-position:top right;" colspan="6">
338 <div style="width:500px;background-color:#ffffff;height:100%;">
339 &nbsp;
340 </div>
341 </td>
342 </tr>
343 </table>
344 </td>
345 <td style="width:6px;"/>
346 <td style="width:245px;height:100%">
347 <table style="padding:0px;border-collapse:collapse;height:100%;">
348 <tr>
349 <td style="width:103px;height:29px;background-image:url('/rom/menu_cuts/h_tab2_selected.png');background-repeat: no-repeat;">
350 <div style="position:relative;top:7px;;font-weight:bold;text-align:center;width:100px;" class="textgray">
351 Documentation
352 </div>
353 </td>
354 <td width="40px">
355 &nbsp;
356 </td>
357 <td/>
358 </tr>
359 <tr>
360 <td style="height:10px;width:245px;background-image:url('/rom/menu_cuts/right_top_small.png');" colspan="3"/>
361 </tr>
362 <tr>
363 <td style="background-color:#d8d7d7;width:245px;padding-left:10px;padding-buttom:10px;line-height:17px;" colspan="3">
364 <a target="_blank" href="http://www.zylin.com/zy1000/ZY1000_Quick_Start_Guide.pdf">Quick Start Manual</a>
365 <br/>
366 <a target="_blank" href="http://www.zylin.com/zy1000/openocd.pdf">OpenOCD Manual</a>
367 <br/>
368 <a target="_blank" href="http://www.zylin.com/zy1000_contact.html">Contact Zylin AS</a>
369 </td>
370 </tr>
371 <tr>
372 <td style="background-color:#d8d7d7;height:15px;" colspan="3"/>
373 </tr>
374 <tr>
375 <td colspan="3">
376 <table style="padding:0px;border-collapse:collapse;">
377 <td style="background-color:#d8d7d7;width:10px;height:1px"/>
378 <td style="background-color:#999999;width:225px; height:1px;"/>
379 <td style="background-color:#d8d7d7;width:10px;height:1px"/>
380 </table>
381 </td>
382 </tr>
383 <tr>
384 <td style="background-color:#d8d7d7;height:15px;" colspan="3"/>
385 </tr>
386 <tr style="height:100%;">
387 <td style="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;" colspan="3" class="textgray">
388
389 Before contacting Zylin with questions, please fill in and submit this form
390 and allow us time to review the information and answer by email if possible.
391 <p/>
392 Note that you can see precisely what information is submitted to Zylin in the
393 form: the log and your config files.
394
395 </td>
396 </tr>
397 <tr>
398 <td style="height:30px;background-image:url('/rom/menu_cuts/right_bottom.png');" colspan="3">
399 &nbsp;
400 </td>
401 </tr>
402 </table>
403 </td>
404 </tr>
405 <tr>
406 <td/>
407 <td>
408 <img border="0" src="/rom/menu_cuts/logo_bottom.png"/>
409 </td>
410 <td style="padding-top:10px;padding-left:10px;margin-top:10px;" class="textlight">
411 Zylin AS, Auglendsdalen 78, N-4017 Stavanger, Norway - www.zylin.com
412 </td>
413 </tr>
414 </table>
415 </body>
416 </html>
417
418
419
420
421
422
423
424
425
426 }
427
428 start_chunked "html"
429 write_chunked $buffer
430 end_chunked
431

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)