httpd wip
[openocd.git] / src / server / httpd / flashinfo.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 <html xmlns="http://www.w3.org/TR/REC-html40">
20 <head>
21 <title>OpenOCD debugger</title>
22 <meta charset="utf-8" content="text/html" http-equiv="Content-Type"/>
23 <link type="text/css" rel="stylesheet" href="menuweb.css"/>
24 </head>
25 }
26
27 set console ""
28 set upload_filename /ram/upload
29
30 append buffer {
31 <body style="margin:0px;">
32 <div style="width:974px;height:85px;">
33 <div style="float:left;position:relative;left:32px;width:478px;">
34 <a href="/">
35 OpenOCD
36 </a>
37 </div>
38 <div style="float:left;position:relative;height:26px; width:278px;left:122px;background-image:url('menu_cuts/top_right.png');">
39 <div style="position:relative;left:15px;top:4px;" class="textlight">
40 }
41 append buffer [capture version]
42 append buffer {
43 </div>
44 </div>
45 </div>
46 <table style="padding:0px;border-collapse:collapse;">
47 <tr>
48 <td style="width:33px;">
49 <div style="width:20px;height:510px;">
50 &nbsp;
51 </div>
52 </td>
53 <td style="vertical-align:top;height:100%;width:140px;padding:0px;">
54 <table style="padding:0px;border-collapse:collapse;height:100%;width:140px;">
55 <tr style="height:59px;">
56 <td/>
57 </tr>
58 <tr>
59 <td style="width:140px;height:38px;background-image:url('menu_cuts/v_tab_selected.png');background-repeat: no-repeat;">
60 <div style="position:relative;left:10px;top:10px;font-weight:bold;">
61 <a href="flashinfo.tcl" style="font-weight: bold;">Info</a>
62 </div>
63 </td>
64 </tr>
65 <tr>
66 <td style="width:140px;height:38px;background-image:url('menu_cuts/v_tab.png');background-repeat: no-repeat;">
67 <div style="position:relative;left:10px;top:10px;font-weight:bold;">
68 <a href="erase.tcl" style="">Erase</a>
69 </div>
70 </td>
71 </tr>
72 <tr>
73 <td style="width:140px;height:38px;background-image:url('menu_cuts/v_tab.png');background-repeat: no-repeat;">
74 <div style="position:relative;left:10px;top:10px;font-weight:bold;">
75 <a href="flash.tcl" style="">Program / Verify</a>
76 </div>
77 </td>
78 </tr>
79 <tr>
80 <td style="width:140px;height:38px;background-image:url('menu_cuts/v_tab.png');background-repeat: no-repeat;">
81 <div style="position:relative;left:10px;top:10px;font-weight:bold;">
82 <a href="production.tcl" style="">Production</a>
83 </div>
84 </td>
85 </tr>
86 <tr>
87 <td style="width:140px;height:35px;background-image:url('menu_cuts/v_1.png')"/>
88 </tr>
89 <tr>
90 <td style="width:140px;background-image:url('menu_cuts/v_2_tile.png')"/>
91 </tr>
92 <tr>
93 <td style="width:140px;height:140px;background-image:url('menu_cuts/v_3.png')"/>
94 </tr>
95 </table>
96 </td>
97 <td style="vertical-align:top;padding:0px;height:100%">
98 <table style="padding:0px;border-collapse:collapse;height:100%;">
99 <tr>
100 <td>
101 <table style="padding:0px;border-collapse:collapse;">
102 <tr>
103 <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
104 <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
105 <a href="index.tcl">Config Target</a>
106 </div>
107 </td>
108 <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1_selected.png');background-repeat: no-repeat;">
109 <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
110 <a href="flashinfo.tcl" style="font-weight: bold;">Flash</a>
111 </div>
112 </td>
113 <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
114 <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
115 <a href="browsemem.tcl">Memory</a>
116 </div>
117 </td>
118 <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
119 <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
120 <a href="openocd.tcl">OpenOCD</a>
121 </div>
122 </td>
123 </tr>
124 </table>
125 </td>
126 </tr>
127 <tr>
128 <td style="height:30px;width:535px;background-image:url('menu_cuts/center_top.png');background-repeat: no-repeat;background-position:top right;" colspan="6">
129 <div style="width:500px;background-color:#ffffff;height:100%;">
130 &nbsp;
131 </div>
132 </td>
133 </tr>
134 <tr>
135 <td style="background-color:#ffffff;text-indent:30px;height:40px;" colspan="6">
136 <H1>Flash Information</H1>
137 </td>
138 </tr>
139 <tr style="height:100%;">
140 <td style="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;" colspan="6">
141
142 <div style="font-size:14px;">Configured flash banks:</div>
143 <p>
144 <code style="white-space: nowrap;">
145 }
146
147 set flash_return [ocd_flash_banks]
148 if {[llength $flash_return]!=0} {
149 append buffer [encode [flash banks]]
150
151 set form_action [formfetch form_action]
152 if {[string compare $form_action "Reset CPU and probe flash"]==0} {
153 append console [encode [capture_catch "reset init"]]
154 append buffer [encode [capture_catch "flash probe 0"]]
155 append buffer [encode [capture_catch "flash info 0"]]
156 }
157 } else {
158 append buffer "No flash bank configured."
159 }
160
161 append buffer {
162 <p>
163 <form action="flashinfo.tcl" method="post">
164 <input type="submit" name="form_action" value="Reset CPU and probe flash">
165 </form>
166 }
167
168 foreach a [ocd_flash_banks] {
169 append buffer "Flash bank at [format "0x%08x size 0x%08x" $a(base) $a(size)]: "
170
171 append buffer {
172 <form action="downloadmem.tcl" method="post">
173 <input type="hidden" name="form_address" value="}
174 append buffer [format "0x%08x" $a(base)]
175 append buffer {">
176 <input type="hidden" name="form_length" value="}
177 append buffer [format "0x%08x" $a(size)]
178 append buffer {">
179
180 <input type="submit" value="Download" name="form_action">
181 <br>
182 </form>
183 }
184
185 }
186
187 append buffer {
188 </code>
189
190
191 </td>
192 </tr>
193 }
194
195
196 set toggle_details [formfetch toggle_details]
197 if {[string length $toggle_details]==0} {
198 set toggle_details 0
199 }
200 set show_details [load_var show_details]
201 if {[string length $show_details]==0} {
202 set show_details 0
203 }
204 if {$toggle_details==1} {
205 set show_details [expr 1-$show_details]
206 save_var show_details $show_details
207 }
208
209 if {[string length $console]!=0} {
210
211 append buffer {
212 <tr style="height:100%;">
213 <td style="height:100%;background-color:red;" colspan="6">
214 <table style="padding:0px;border-collapse:collapse;background-color:#ffffff;width:100%" class="textgray">
215 <td style="width:25px;">&nbsp;</td>
216 }
217
218 if {$show_details==1} {
219 append buffer <
220 append buffer {td style="background-color:#dddddd;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;"}
221 append buffer >
222 } else {
223 append buffer <
224 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;"}
225 append buffer >
226 }
227
228 append buffer {
229 <a class="openocd" href="flashinfo.tcl?toggle_details=1">
230 }
231
232 if {$show_details==1} {
233 append buffer "Hide details"
234 append buffer <br/>
235 } else {
236 append buffer {<div style="position:relative;top:7px;text-align:center;">}
237 append buffer "Show details"
238 append buffer {</div>}
239 }
240
241 append buffer {
242 </a>
243 }
244
245 if {$show_details==1} {
246 append buffer $console
247 }
248
249 append buffer {</td>}
250
251 if {$show_details!=1} {
252 append buffer {<td>&nbsp;</td>}
253 }
254
255 append buffer {
256 <td style="width:25px;">&nbsp;</td>
257 </table>
258 </td>
259 </tr>
260 }
261
262 }
263
264 append buffer {
265 <tr>
266 <td style="height:30px;background-image:url('menu_cuts/center_bottom.png');background-repeat: no-repeat;background-position:top right;" colspan="6">
267 <div style="width:500px;background-color:#ffffff;height:100%;">
268 &nbsp;
269 </div>
270 </td>
271 </tr>
272 </table>
273 </td>
274 <td style="width:6px;"/>
275 <td style="width:245px;height:100%">
276 <table style="padding:0px;border-collapse:collapse;height:100%;">
277 <tr>
278 <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab2_selected.png');background-repeat: no-repeat;">
279 <div style="position:relative;top:7px;;font-weight:bold;text-align:center;width:100px;" class="textgray">
280 Documentation
281 </div>
282 </td>
283 <td width="40px">
284 &nbsp;
285 </td>
286 <td/>
287 </tr>
288 <tr>
289 <td style="height:10px;width:245px;background-image:url('menu_cuts/right_top_small.png');" colspan="3"/>
290 </tr>
291 <tr>
292 <td style="background-color:#d8d7d7;width:245px;padding-left:10px;padding-buttom:10px;line-height:17px;" colspan="3">
293 <a target="_blank" href="http://openocd.berlios.de/doc/openocd.pdf">OpenOCD Manual</a>
294 <br/>
295 </td>
296 </tr>
297 <tr>
298 <td style="background-color:#d8d7d7;height:15px;" colspan="3"/>
299 </tr>
300 <tr>
301 <td colspan="3">
302 <table style="padding:0px;border-collapse:collapse;">
303 <td style="background-color:#d8d7d7;width:10px;height:1px"/>
304 <td style="background-color:#999999;width:225px; height:1px;"/>
305 <td style="background-color:#d8d7d7;width:10px;height:1px"/>
306 </table>
307 </td>
308 </tr>
309 <tr>
310 <td style="background-color:#d8d7d7;height:15px;" colspan="3"/>
311 </tr>
312 <tr style="height:100%;">
313 <td style="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;" colspan="3" class="textgray">
314
315 <p>Here you will find information about the flash chips that you have
316 in your configuration.<p/>
317 <p><b>Reset CPU and probe flash</b> - This will reset the CPU and show
318 you more detailed information about your flash. This includes information about
319 the different sectors in the flash, and the flash driver used.</p>
320
321 </td>
322 </tr>
323 <tr>
324 <td style="height:30px;background-image:url('menu_cuts/right_bottom.png');" colspan="3">
325 &nbsp;
326 </td>
327 </tr>
328 </table>
329 </td>
330 </tr>
331 </table>
332 </body>
333 </html>
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379 }
380
381 start_chunked "html"
382 write_chunked $buffer
383 end_chunked
384

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)