Add comments and tiny improvements to STM32 flash loader algorithm
[openocd.git] / src / server / httpd / reload.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 <html xmlns="http://www.w3.org/TR/REC-html40">
17 <head>
18 <title>OpenOCD debugger</title>
19 <meta charset="utf-8" content="text/html" http-equiv="Content-Type"/>
20 <link type="text/css" rel="stylesheet" href="menuweb.css"/>
21 </head>
22 }
23
24 set console ""
25 set upload_filename /ram/upload
26
27 append buffer {
28 <body style="margin:0px;">
29 <div style="width:974px;height:85px;">
30 <div style="float:left;position:relative;left:32px;width:478px;">
31 <a href="/">
32 OpenOCD
33 </a>
34 </div>
35 <div style="float:left;position:relative;height:26px; width:278px;left:122px;background-image:url('menu_cuts/top_right.png');">
36 <div style="position:relative;left:15px;top:4px;" class="textlight">
37 }
38 append buffer [capture version]
39 append buffer {
40 </div>
41 </div>
42 </div>
43 <table style="padding:0px;border-collapse:collapse;">
44 <tr>
45 <td style="width:33px;">
46 <div style="width:20px;height:510px;">
47 &nbsp;
48 </div>
49 </td>
50 <td style="vertical-align:top;height:100%;width:140px;padding:0px;">
51 <table style="padding:0px;border-collapse:collapse;height:100%;width:140px;">
52 <tr style="height:59px;">
53 <td/>
54 </tr>
55 <tr>
56 <td style="width:140px;height:38px;background-image:url('menu_cuts/v_tab.png');background-repeat: no-repeat;">
57 <div style="position:relative;left:10px;top:10px;font-weight:bold;">
58 <a href="index.tcl" style="">Target Status</a>
59 </div>
60 </td>
61 </tr>
62 <tr>
63 <td style="width:140px;height:35px;background-image:url('menu_cuts/v_1.png')"/>
64 </tr>
65 <tr>
66 <td style="width:140px;background-image:url('menu_cuts/v_2_tile.png')"/>
67 </tr>
68 <tr>
69 <td style="width:140px;height:140px;background-image:url('menu_cuts/v_3.png')"/>
70 </tr>
71 </table>
72 </td>
73 <td style="vertical-align:top;padding:0px;height:100%">
74 <table style="padding:0px;border-collapse:collapse;height:100%;">
75 <tr>
76 <td>
77 <table style="padding:0px;border-collapse:collapse;">
78 <tr>
79 <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1_selected.png');background-repeat: no-repeat;">
80 <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
81 <a href="index.tcl" style="font-weight: bold;">Config Target</a>
82 </div>
83 </td>
84 <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
85 <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
86 <a href="flashinfo.tcl">Flash</a>
87 </div>
88 </td>
89 <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
90 <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
91 <a href="browsemem.tcl">Memory</a>
92 </div>
93 </td>
94 <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
95 <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
96 <a href="openocd.tcl">OpenOCD</a>
97 </div>
98 </td>
99 </tr>
100 </table>
101 </td>
102 </tr>
103 <tr>
104 <td style="height:30px;width:535px;background-image:url('menu_cuts/center_top.png');background-repeat: no-repeat;background-position:top right;" colspan="6">
105 <div style="width:500px;background-color:#ffffff;height:100%;">
106 &nbsp;
107 </div>
108 </td>
109 </tr>
110 <tr>
111 <td style="background-color:#ffffff;text-indent:30px;height:40px;" colspan="6">
112 <H1>Reload Config Scripts</H1>
113 </td>
114 </tr>
115 <tr style="height:100%;">
116 <td style="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;" colspan="6">
117
118 }
119
120 set form_action [formfetch form_action]
121
122 if {[string compare $form_action "Reload"]==0} {
123 append buffer "Reloading Config Scripts...<p>"
124 reboot
125 }
126
127 append buffer {
128 <form enctype="multipart/form-data" action="reload.tcl" method="post">
129 <input type="submit" name="form_action" value="Reload">
130 </form>
131
132 </td>
133 </tr>
134 }
135
136
137 set toggle_details [formfetch toggle_details]
138 if {[string length $toggle_details]==0} {
139 set toggle_details 0
140 }
141 set show_details [load_var show_details]
142 if {[string length $show_details]==0} {
143 set show_details 0
144 }
145 if {$toggle_details==1} {
146 set show_details [expr 1-$show_details]
147 save_var show_details $show_details
148 }
149
150 if {[string length $console]!=0} {
151
152 append buffer {
153 <tr style="height:100%;">
154 <td style="height:100%;background-color:red;" colspan="6">
155 <table style="padding:0px;border-collapse:collapse;background-color:#ffffff;width:100%" class="textgray">
156 <td style="width:25px;">&nbsp;</td>
157 }
158
159 if {$show_details==1} {
160 append buffer <
161 append buffer {td style="background-color:#dddddd;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;"}
162 append buffer >
163 } else {
164 append buffer <
165 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;"}
166 append buffer >
167 }
168
169 append buffer {
170 <a class="openocd" href="reload.tcl?toggle_details=1">
171 }
172
173 if {$show_details==1} {
174 append buffer "Hide details"
175 append buffer <br/>
176 } else {
177 append buffer {<div style="position:relative;top:7px;text-align:center;">}
178 append buffer "Show details"
179 append buffer {</div>}
180 }
181
182 append buffer {
183 </a>
184 }
185
186 if {$show_details==1} {
187 append buffer $console
188 }
189
190 append buffer {</td>}
191
192 if {$show_details!=1} {
193 append buffer {<td>&nbsp;</td>}
194 }
195
196 append buffer {
197 <td style="width:25px;">&nbsp;</td>
198 </table>
199 </td>
200 </tr>
201 }
202
203 }
204
205 append buffer {
206 <tr>
207 <td style="height:30px;background-image:url('menu_cuts/center_bottom.png');background-repeat: no-repeat;background-position:top right;" colspan="6">
208 <div style="width:500px;background-color:#ffffff;height:100%;">
209 &nbsp;
210 </div>
211 </td>
212 </tr>
213 </table>
214 </td>
215 <td style="width:6px;"/>
216 <td style="width:245px;height:100%">
217 <table style="padding:0px;border-collapse:collapse;height:100%;">
218 <tr>
219 <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab2_selected.png');background-repeat: no-repeat;">
220 <div style="position:relative;top:7px;;font-weight:bold;text-align:center;width:100px;" class="textgray">
221 Documentation
222 </div>
223 </td>
224 <td width="40px">
225 &nbsp;
226 </td>
227 <td/>
228 </tr>
229 <tr>
230 <td style="height:10px;width:245px;background-image:url('menu_cuts/right_top_small.png');" colspan="3"/>
231 </tr>
232 <tr>
233 <td style="background-color:#d8d7d7;width:245px;padding-left:10px;padding-buttom:10px;line-height:17px;" colspan="3">
234 <a target="_blank" href="http://openocd.berlios.de/doc/openocd.pdf">OpenOCD Manual</a>
235 <br/>
236 </td>
237 </tr>
238 <tr>
239 <td style="background-color:#d8d7d7;height:15px;" colspan="3"/>
240 </tr>
241 <tr>
242 <td colspan="3">
243 <table style="padding:0px;border-collapse:collapse;">
244 <td style="background-color:#d8d7d7;width:10px;height:1px"/>
245 <td style="background-color:#999999;width:225px; height:1px;"/>
246 <td style="background-color:#d8d7d7;width:10px;height:1px"/>
247 </table>
248 </td>
249 </tr>
250 <tr>
251 <td style="background-color:#d8d7d7;height:15px;" colspan="3"/>
252 </tr>
253 <tr style="height:100%;">
254 <td style="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;" colspan="3" class="textgray">
255 Restart ZY1000 to reload selected target config script.
256 </td>
257 </tr>
258 <tr>
259 <td style="height:30px;background-image:url('menu_cuts/right_bottom.png');" colspan="3">
260 &nbsp;
261 </td>
262 </tr>
263 </table>
264 </td>
265 </tr>
266 </table>
267 </body>
268 </html>
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
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317 }
318
319 start_chunked "html"
320 write_chunked $buffer
321 end_chunked
322

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)