httpd wip
[openocd.git] / src / server / httpd / targets.tcl
1 # converted to .tcl by html2tcl.tcl
2 set buffer ""
3 append buffer {
4
5
6
7
8
9
10
11
12 <html xmlns="http://www.w3.org/TR/REC-html40">
13 <head>
14 <title>OpenOCD debugger</title>
15 <meta charset="utf-8" content="text/html" http-equiv="Content-Type"/>
16 <link type="text/css" rel="stylesheet" href="menuweb.css"/>
17 </head>
18 }
19
20 set console ""
21 set upload_filename /ram/upload
22
23 append buffer {
24 <body style="margin:0px;">
25 <div style="width:974px;height:85px;">
26 <div style="float:left;position:relative;left:32px;width:478px;">
27 <a href="/">
28 OpenOCD
29 </a>
30 </div>
31 <div style="float:left;position:relative;height:26px; width:278px;left:122px;background-image:url('menu_cuts/top_right.png');">
32 <div style="position:relative;left:15px;top:4px;" class="textlight">
33 }
34 append buffer [capture version]
35 append buffer {
36 </div>
37 </div>
38 </div>
39 <table style="padding:0px;border-collapse:collapse;">
40 <tr>
41 <td style="width:33px;">
42 <div style="width:20px;height:510px;">
43 &nbsp;
44 </div>
45 </td>
46 <td style="vertical-align:top;height:100%;width:140px;padding:0px;">
47 <table style="padding:0px;border-collapse:collapse;height:100%;width:140px;">
48 <tr style="height:59px;">
49 <td/>
50 </tr>
51 <tr>
52 <td style="width:140px;height:35px;background-image:url('menu_cuts/v_1.png')"/>
53 </tr>
54 <tr>
55 <td style="width:140px;background-image:url('menu_cuts/v_2_tile.png')"/>
56 </tr>
57 <tr>
58 <td style="width:140px;height:140px;background-image:url('menu_cuts/v_3.png')"/>
59 </tr>
60 </table>
61 </td>
62 <td style="vertical-align:top;padding:0px;height:100%">
63 <table style="padding:0px;border-collapse:collapse;height:100%;">
64 <tr>
65 <td>
66 <table style="padding:0px;border-collapse:collapse;">
67 <tr>
68 <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
69 <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
70 <a href="index.tcl">Config Target</a>
71 </div>
72 </td>
73 <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
74 <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
75 <a href="flashinfo.tcl">Flash</a>
76 </div>
77 </td>
78 <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
79 <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
80 <a href="browsemem.tcl">Memory</a>
81 </div>
82 </td>
83 <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
84 <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
85 <a href="openocd.tcl">OpenOCD</a>
86 </div>
87 </td>
88 </tr>
89 </table>
90 </td>
91 </tr>
92 <tr>
93 <td style="height:30px;width:535px;background-image:url('menu_cuts/center_top.png');background-repeat: no-repeat;background-position:top right;" colspan="6">
94 <div style="width:500px;background-color:#ffffff;height:100%;">
95 &nbsp;
96 </div>
97 </td>
98 </tr>
99 <tr>
100 <td style="background-color:#ffffff;text-indent:30px;height:40px;" colspan="6">
101 <H1>Target config quick start guide</H1>
102 </td>
103 </tr>
104 <tr style="height:100%;">
105 <td style="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;" colspan="6">
106
107 A target needs an openocd.cfg file. This config file sets up
108 the CPU, flash and reset init script. Either ZY1000 ships with an
109 openocd.cfg file for your target or you need to take an existing
110 config file and modify it for your needs.
111 <p>
112 The reset init script is crucial. It will set up e.g. MMU, chip
113 select registers, etc. after a reset. The init.cfg (reset init script)
114 is embedded into the openocd.cfg file in the sampls Zylin provides.
115 <p>
116 Writing an openocd.cfg from scratch is a non-trivial exercise, but
117 fortunally it only has to be done once for a target and afterwards it
118 rarely if ever needs to be changed.
119
120
121 </td>
122 </tr>
123 }
124
125
126 set toggle_details [formfetch toggle_details]
127 if {[string length $toggle_details]==0} {
128 set toggle_details 0
129 }
130 set show_details [load_var show_details]
131 if {[string length $show_details]==0} {
132 set show_details 0
133 }
134 if {$toggle_details==1} {
135 set show_details [expr 1-$show_details]
136 save_var show_details $show_details
137 }
138
139 if {[string length $console]!=0} {
140
141 append buffer {
142 <tr style="height:100%;">
143 <td style="height:100%;background-color:red;" colspan="6">
144 <table style="padding:0px;border-collapse:collapse;background-color:#ffffff;width:100%" class="textgray">
145 <td style="width:25px;">&nbsp;</td>
146 }
147
148 if {$show_details==1} {
149 append buffer <
150 append buffer {td style="background-color:#dddddd;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;"}
151 append buffer >
152 } else {
153 append buffer <
154 append buffer {td style="background-image:url('menu_cuts/h_tab_free.png');width:110px;height:29px;background-repeat: no-repeat;background-position:top left;"}
155 append buffer >
156 }
157
158 append buffer {
159 <a class="openocd" href="targets.tcl?toggle_details=1">
160 }
161
162 if {$show_details==1} {
163 append buffer "Hide details"
164 append buffer <br/>
165 } else {
166 append buffer {<div style="position:relative;top:7px;text-align:center;">}
167 append buffer "Show details"
168 append buffer {</div>}
169 }
170
171 append buffer {
172 </a>
173 }
174
175 if {$show_details==1} {
176 append buffer $console
177 }
178
179 append buffer {</td>}
180
181 if {$show_details!=1} {
182 append buffer {<td>&nbsp;</td>}
183 }
184
185 append buffer {
186 <td style="width:25px;">&nbsp;</td>
187 </table>
188 </td>
189 </tr>
190 }
191
192 }
193
194 append buffer {
195 <tr>
196 <td style="height:30px;background-image:url('menu_cuts/center_bottom.png');background-repeat: no-repeat;background-position:top right;" colspan="6">
197 <div style="width:500px;background-color:#ffffff;height:100%;">
198 &nbsp;
199 </div>
200 </td>
201 </tr>
202 </table>
203 </td>
204 <td style="width:6px;"/>
205 <td style="width:245px;height:100%">
206 <table style="padding:0px;border-collapse:collapse;height:100%;">
207 <tr>
208 <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab2_selected.png');background-repeat: no-repeat;">
209 <div style="position:relative;top:7px;;font-weight:bold;text-align:center;width:100px;" class="textgray">
210 Documentation
211 </div>
212 </td>
213 <td width="40px">
214 &nbsp;
215 </td>
216 <td/>
217 </tr>
218 <tr>
219 <td style="height:10px;width:245px;background-image:url('menu_cuts/right_top_small.png');" colspan="3"/>
220 </tr>
221 <tr>
222 <td style="background-color:#d8d7d7;width:245px;padding-left:10px;padding-buttom:10px;line-height:17px;" colspan="3">
223 <a target="_blank" href="http://openocd.berlios.de/doc/openocd.pdf">OpenOCD Manual</a>
224 <br/>
225 </td>
226 </tr>
227 <tr>
228 <td style="background-color:#d8d7d7;height:15px;" colspan="3"/>
229 </tr>
230 <tr>
231 <td colspan="3">
232 <table style="padding:0px;border-collapse:collapse;">
233 <td style="background-color:#d8d7d7;width:10px;height:1px"/>
234 <td style="background-color:#999999;width:225px; height:1px;"/>
235 <td style="background-color:#d8d7d7;width:10px;height:1px"/>
236 </table>
237 </td>
238 </tr>
239 <tr>
240 <td style="background-color:#d8d7d7;height:15px;" colspan="3"/>
241 </tr>
242 <tr style="height:100%;">
243 <td style="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;" colspan="3" class="textgray">
244
245 Quick start guide on how to configure a target.
246 </td>
247 </tr>
248 <tr>
249 <td style="height:30px;background-image:url('menu_cuts/right_bottom.png');" colspan="3">
250 &nbsp;
251 </td>
252 </tr>
253 </table>
254 </td>
255 </tr>
256 </table>
257 </body>
258 </html>
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299 <html xmlns="http://www.w3.org/TR/REC-html40">
300 <head>
301 <title>OpenOCD debugger</title>
302 <meta charset="utf-8" content="text/html" http-equiv="Content-Type"/>
303 <link type="text/css" rel="stylesheet" href="menuweb.css"/>
304 </head>
305 }
306
307 set console ""
308 set upload_filename /ram/upload
309
310 append buffer {
311 <body style="margin:0px;">
312 <div style="width:974px;height:85px;">
313 <div style="float:left;position:relative;left:32px;width:478px;">
314 <a href="/">
315 OpenOCD
316 </a>
317 </div>
318 <div style="float:left;position:relative;height:26px; width:278px;left:122px;background-image:url('menu_cuts/top_right.png');">
319 <div style="position:relative;left:15px;top:4px;" class="textlight">
320 }
321 append buffer [capture version]
322 append buffer {
323 </div>
324 </div>
325 </div>
326 <table style="padding:0px;border-collapse:collapse;">
327 <tr>
328 <td style="width:33px;">
329 <div style="width:20px;height:510px;">
330 &nbsp;
331 </div>
332 </td>
333 <td style="vertical-align:top;height:100%;width:140px;padding:0px;">
334 <table style="padding:0px;border-collapse:collapse;height:100%;width:140px;">
335 <tr style="height:59px;">
336 <td/>
337 </tr>
338 <tr>
339 <td style="width:140px;height:35px;background-image:url('menu_cuts/v_1.png')"/>
340 </tr>
341 <tr>
342 <td style="width:140px;background-image:url('menu_cuts/v_2_tile.png')"/>
343 </tr>
344 <tr>
345 <td style="width:140px;height:140px;background-image:url('menu_cuts/v_3.png')"/>
346 </tr>
347 </table>
348 </td>
349 <td style="vertical-align:top;padding:0px;height:100%">
350 <table style="padding:0px;border-collapse:collapse;height:100%;">
351 <tr>
352 <td>
353 <table style="padding:0px;border-collapse:collapse;">
354 <tr>
355 <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
356 <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
357 <a href="index.tcl">Config Target</a>
358 </div>
359 </td>
360 <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
361 <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
362 <a href="flashinfo.tcl">Flash</a>
363 </div>
364 </td>
365 <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
366 <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
367 <a href="browsemem.tcl">Memory</a>
368 </div>
369 </td>
370 <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
371 <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
372 <a href="openocd.tcl">OpenOCD</a>
373 </div>
374 </td>
375 </tr>
376 </table>
377 </td>
378 </tr>
379 <tr>
380 <td style="height:30px;width:535px;background-image:url('menu_cuts/center_top.png');background-repeat: no-repeat;background-position:top right;" colspan="6">
381 <div style="width:500px;background-color:#ffffff;height:100%;">
382 &nbsp;
383 </div>
384 </td>
385 </tr>
386 <tr>
387 <td style="background-color:#ffffff;text-indent:30px;height:40px;" colspan="6">
388 <H1>Target config quick start guide</H1>
389 </td>
390 </tr>
391 <tr style="height:100%;">
392 <td style="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;" colspan="6">
393
394 A target needs an openocd.cfg file. This config file sets up
395 the CPU, flash and reset init script. Either ZY1000 ships with an
396 openocd.cfg file for your target or you need to take an existing
397 config file and modify it for your needs.
398 <p>
399 The reset init script is crucial. It will set up e.g. MMU, chip
400 select registers, etc. after a reset. The init.cfg (reset init script)
401 is embedded into the openocd.cfg file in the sampls Zylin provides.
402 <p>
403 Writing an openocd.cfg from scratch is a non-trivial exercise, but
404 fortunally it only has to be done once for a target and afterwards it
405 rarely if ever needs to be changed.
406
407
408 </td>
409 </tr>
410 }
411
412
413 set toggle_details [formfetch toggle_details]
414 if {[string length $toggle_details]==0} {
415 set toggle_details 0
416 }
417 set show_details [load_var show_details]
418 if {[string length $show_details]==0} {
419 set show_details 0
420 }
421 if {$toggle_details==1} {
422 set show_details [expr 1-$show_details]
423 save_var show_details $show_details
424 }
425
426 if {[string length $console]!=0} {
427
428 append buffer {
429 <tr style="height:100%;">
430 <td style="height:100%;background-color:red;" colspan="6">
431 <table style="padding:0px;border-collapse:collapse;background-color:#ffffff;width:100%" class="textgray">
432 <td style="width:25px;">&nbsp;</td>
433 }
434
435 if {$show_details==1} {
436 append buffer <
437 append buffer {td style="background-color:#dddddd;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;"}
438 append buffer >
439 } else {
440 append buffer <
441 append buffer {td style="background-image:url('menu_cuts/h_tab_free.png');width:110px;height:29px;background-repeat: no-repeat;background-position:top left;"}
442 append buffer >
443 }
444
445 append buffer {
446 <a class="openocd" href="targets.tcl?toggle_details=1">
447 }
448
449 if {$show_details==1} {
450 append buffer "Hide details"
451 append buffer <br/>
452 } else {
453 append buffer {<div style="position:relative;top:7px;text-align:center;">}
454 append buffer "Show details"
455 append buffer {</div>}
456 }
457
458 append buffer {
459 </a>
460 }
461
462 if {$show_details==1} {
463 append buffer $console
464 }
465
466 append buffer {</td>}
467
468 if {$show_details!=1} {
469 append buffer {<td>&nbsp;</td>}
470 }
471
472 append buffer {
473 <td style="width:25px;">&nbsp;</td>
474 </table>
475 </td>
476 </tr>
477 }
478
479 }
480
481 append buffer {
482 <tr>
483 <td style="height:30px;background-image:url('menu_cuts/center_bottom.png');background-repeat: no-repeat;background-position:top right;" colspan="6">
484 <div style="width:500px;background-color:#ffffff;height:100%;">
485 &nbsp;
486 </div>
487 </td>
488 </tr>
489 </table>
490 </td>
491 <td style="width:6px;"/>
492 <td style="width:245px;height:100%">
493 <table style="padding:0px;border-collapse:collapse;height:100%;">
494 <tr>
495 <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab2_selected.png');background-repeat: no-repeat;">
496 <div style="position:relative;top:7px;;font-weight:bold;text-align:center;width:100px;" class="textgray">
497 Documentation
498 </div>
499 </td>
500 <td width="40px">
501 &nbsp;
502 </td>
503 <td/>
504 </tr>
505 <tr>
506 <td style="height:10px;width:245px;background-image:url('menu_cuts/right_top_small.png');" colspan="3"/>
507 </tr>
508 <tr>
509 <td style="background-color:#d8d7d7;width:245px;padding-left:10px;padding-buttom:10px;line-height:17px;" colspan="3">
510 <a target="_blank" href="http://openocd.berlios.de/doc/openocd.pdf">OpenOCD Manual</a>
511 <br/>
512 </td>
513 </tr>
514 <tr>
515 <td style="background-color:#d8d7d7;height:15px;" colspan="3"/>
516 </tr>
517 <tr>
518 <td colspan="3">
519 <table style="padding:0px;border-collapse:collapse;">
520 <td style="background-color:#d8d7d7;width:10px;height:1px"/>
521 <td style="background-color:#999999;width:225px; height:1px;"/>
522 <td style="background-color:#d8d7d7;width:10px;height:1px"/>
523 </table>
524 </td>
525 </tr>
526 <tr>
527 <td style="background-color:#d8d7d7;height:15px;" colspan="3"/>
528 </tr>
529 <tr style="height:100%;">
530 <td style="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;" colspan="3" class="textgray">
531
532 Quick start guide on how to configure a target.
533 </td>
534 </tr>
535 <tr>
536 <td style="height:30px;background-image:url('menu_cuts/right_bottom.png');" colspan="3">
537 &nbsp;
538 </td>
539 </tr>
540 </table>
541 </td>
542 </tr>
543 </table>
544 </body>
545 </html>
546
547
548
549
550
551
552
553
554
555
556
557 }
558
559 start_chunked "html"
560 write_chunked $buffer
561 end_chunked
562

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)