1 # converted to .tcl by html2tcl.tcl
21 <html xmlns
="http://www.w3.org/TR/REC-html40">
23 <title
>OpenOCD debugger
</title
>
24 <meta charset
="utf-8" content
="text/html" http-equiv
="Content-Type"/>
25 <link type
="text/css" rel
="stylesheet" href
="menuweb.css"/>
30 set upload_filename
/ram
/upload
33 <body style
="margin:0px;">
34 <div style
="width:974px;height:85px;">
35 <div style
="float:left;position:relative;left:32px;width:478px;">
40 <div style
="float:left;position:relative;height:26px; width:278px;left:122px;background-image:url('menu_cuts/top_right.png');">
41 <div style
="position:relative;left:15px;top:4px;" class
="textlight">
43 append buffer
[capture version
]
48 <table style
="padding:0px;border-collapse:collapse;">
50 <td style
="width:33px;">
51 <div style
="width:20px;height:510px;">
55 <td style
="vertical-align:top;height:100%;width:140px;padding:0px;">
56 <table style
="padding:0px;border-collapse:collapse;height:100%;width:140px;">
57 <tr style
="height:59px;">
61 <td style
="width:140px;height:38px;background-image:url('menu_cuts/v_tab.png');background-repeat: no-repeat;">
62 <div style
="position:relative;left:10px;top:10px;font-weight:bold;">
63 <a href
="flashinfo.tcl" style
="">Info
</a
>
68 <td style
="width:140px;height:38px;background-image:url('menu_cuts/v_tab.png');background-repeat: no-repeat;">
69 <div style
="position:relative;left:10px;top:10px;font-weight:bold;">
70 <a href
="erase.tcl" style
="">Erase
</a
>
75 <td style
="width:140px;height:38px;background-image:url('menu_cuts/v_tab_selected.png');background-repeat: no-repeat;">
76 <div style
="position:relative;left:10px;top:10px;font-weight:bold;">
77 <a href
="flash.tcl" style
="font-weight: bold;">Program
/ Verify
</a
>
82 <td style
="width:140px;height:38px;background-image:url('menu_cuts/v_tab.png');background-repeat: no-repeat;">
83 <div style
="position:relative;left:10px;top:10px;font-weight:bold;">
84 <a href
="production.tcl" style
="">Production
</a
>
89 <td style
="width:140px;height:35px;background-image:url('menu_cuts/v_1.png')"/>
92 <td style
="width:140px;background-image:url('menu_cuts/v_2_tile.png')"/>
95 <td style
="width:140px;height:140px;background-image:url('menu_cuts/v_3.png')"/>
99 <td style
="vertical-align:top;padding:0px;height:100%">
100 <table style
="padding:0px;border-collapse:collapse;height:100%;">
103 <table style
="padding:0px;border-collapse:collapse;">
105 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
106 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
107 <a href
="index.tcl">Config Target
</a
>
110 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1_selected.png');background-repeat: no-repeat;">
111 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
112 <a href
="flashinfo.tcl" style
="font-weight: bold;">Flash
</a
>
115 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
116 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
117 <a href
="browsemem.tcl">Memory
</a
>
120 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
121 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
122 <a href
="openocd.tcl">OpenOCD
</a
>
130 <td style
="height:30px;width:535px;background-image:url('menu_cuts/center_top.png');background-repeat: no-repeat;background-position:top right;" colspan
="6">
131 <div style
="width:500px;background-color:#ffffff;height:100%;">
137 <td style
="background-color:#ffffff;text-indent:30px;height:40px;" colspan
="6">
138 <H1
>Program
/ Verify Flash
</H1
>
141 <tr style
="height:100%;">
142 <td style
="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;" colspan
="6">
147 set form_offset
[formfetch form_offset
]
148 set form_action
[formfetch form_action
]
149 set form_type
[formfetch form_type
]
153 catch {set post
$post_data} err
155 if {[string compare
$form_offset ""]==0} {
158 if {[string compare
$form_type ""]==0} {
163 append buffer
{<code style
="white-space: nowrap;">}
167 append buffer
{<form enctype
="multipart/form-data" action
="flash.tcl" method
="post">}
169 set action_reset
[expr {[string length
$form_action]!=0}]
170 set action_flash
[expr {[string compare
$form_action "Flash"]==0 ||
[string compare
$form_action "Flash and verify"]==0}]
171 set action_verify
[expr {[string compare
$form_action "Verify"]==0 ||
[string compare
$form_action "Flash and verify"]==0}]
174 append console [encode
[capture_catch
"reset init"]]
181 append buffer
{<table
>}
182 append buffer
{<tr
><td class
="formtext">File
</td
><td
><input type
="file" name
="form_filecontent"></td
></tr
>}
183 append buffer
"<tr><td class=\"formtext\" >Offset</td><td><input type=\"text\" name=\"form_offset\" value=\"$form_offset\"></td></tr>"
187 <tr
><td class
="formtext" style
="padding-top:1px;">Type
</td
><td
>
188 <select name
="form_type">
191 if {[string compare
$form_type ""]==0} { append buffer
{selected
="selected"} }
193 value
="">auto
</option>
196 if {[string compare
$form_type "elf"]==0} { append buffer
{selected
="selected"} }
198 value
="elf">elf
</option>
201 if {[string compare
$form_type "bin"]==0} { append buffer
{selected
="selected"} }
203 value
="bin">binary</option>
206 if {[string compare
$form_type "ihex"]==0} { append buffer
{selected
="selected"} }
208 value
="ihex">ihex
</option>
209 <!-- broken
<option value
="s19">s19
</option> -->
219 <tr
><td style
="height:15px;width:535px;"> 
</td
></tr
>
220 <tr
><td style
="height:1px;width:535px;background-color:#a2c5d1;"></td
></tr
>
221 <tr
><td style
="height:15px;width:535px;"> 
</td
></tr
>
225 <td
><input type
="submit" name
="form_action" value
="Flash" ></td
>
226 <td class
="buttonspacesmall"></td
><td
><input type
="submit" name
="form_action" value
="Flash and verify" ></td
>
227 <td class
="buttonspacesmall"></td
><td
><input type
="submit" name
="form_action" value
="Verify" ></td
>
234 if {$action_flash||
$action_verify} {
235 catch {writeform form_filecontent
$upload_filename} result
236 append console [encode
$result]
240 append console [encode
[capture_catch
"halt"]]
242 if {[catch {capture_catch
{eval "flash write_image erase $upload_filename $form_offset $form_type"}} result
]} {
243 append buffer
"Flash write failed<br>"
244 append console [encode
$result]
246 append buffer
[encode
$result]
247 append buffer
"Flash write succeed<br>"
251 if {$action_verify} {
252 append console [encode
[capture_catch
"halt"]]
254 if {[catch {capture_catch
{eval "verify_image $upload_filename $form_offset $form_type"}} result
]} {
255 append buffer
"Verify failed<br>"
256 append console [encode
$result]
258 append buffer
[encode
$result]
259 append buffer
"Verify succeed<br>"
273 set toggle_details
[formfetch toggle_details
]
274 if {[string length
$toggle_details]==0} {
277 set show_details
[load_var show_details
]
278 if {[string length
$show_details]==0} {
281 if {$toggle_details==1} {
282 set show_details
[expr 1-$show_details]
283 save_var show_details
$show_details
286 if {[string length
$console]!=0} {
289 <tr style
="height:100%;">
290 <td style
="height:100%;background-color:red;" colspan
="6">
291 <table style
="padding:0px;border-collapse:collapse;background-color:#ffffff;width:100%" class
="textgray">
292 <td style
="width:25px;"> 
;</td
>
295 if {$show_details==1} {
297 append buffer
{td style
="background-color:#dddddd;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;"}
301 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;"}
306 <a class
="openocd" href
="flash.tcl?toggle_details=1">
309 if {$show_details==1} {
310 append buffer
"Hide details"
313 append buffer
{<div style
="position:relative;top:7px;text-align:center;">}
314 append buffer
"Show details"
315 append buffer
{</div
>}
322 if {$show_details==1} {
323 append buffer
$console
326 append buffer
{</td
>}
328 if {$show_details!=1} {
329 append buffer
{<td
> 
;</td
>}
333 <td style
="width:25px;"> 
;</td
>
343 <td style
="height:30px;background-image:url('menu_cuts/center_bottom.png');background-repeat: no-repeat;background-position:top right;" colspan
="6">
344 <div style
="width:500px;background-color:#ffffff;height:100%;">
351 <td style
="width:6px;"/>
352 <td style
="width:245px;height:100%">
353 <table style
="padding:0px;border-collapse:collapse;height:100%;">
355 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab2_selected.png');background-repeat: no-repeat;">
356 <div style
="position:relative;top:7px;;font-weight:bold;text-align:center;width:100px;" class
="textgray">
366 <td style
="height:10px;width:245px;background-image:url('menu_cuts/right_top_small.png');" colspan
="3"/>
369 <td style
="background-color:#d8d7d7;width:245px;padding-left:10px;padding-buttom:10px;line-height:17px;" colspan
="3">
370 <a target
="_blank" href
="http://openocd.berlios.de/doc/openocd.pdf">OpenOCD Manual
</a
>
375 <td style
="background-color:#d8d7d7;height:15px;" colspan
="3"/>
379 <table style
="padding:0px;border-collapse:collapse;">
380 <td style
="background-color:#d8d7d7;width:10px;height:1px"/>
381 <td style
="background-color:#999999;width:225px; height:1px;"/>
382 <td style
="background-color:#d8d7d7;width:10px;height:1px"/>
387 <td style
="background-color:#d8d7d7;height:15px;" colspan
="3"/>
389 <tr style
="height:100%;">
390 <td style
="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;" colspan
="3" class
="textgray">
392 <p
>Program and
/or verify the flash on your target.
</p
>
393 <p
><b
>Flash
</b
> - Halt CPU
, automatically erase flash
if required and program flash with
image.
</p
>
394 <p
><b
>Flash and verify
</b
> - Programs the flash and verifies the programmed flash content is correct.
</p
>
395 <p
><b
>Verify
</b
> - Halt CPU and verify
image in flash or RAM.
</p
>
396 <p
><b
>Offset
</b
> - This value is added to the address of the
image.
<br
>
397 Binary images start at address
0 by
default, whereas elf and ihex have addresses encoded into the
image.
<br
>
398 Typically
0 for elf
/ihex and the address to write the
image to
for binary files.
</p
>
403 <td style
="height:30px;background-image:url('menu_cuts/right_bottom.png');" colspan
="3">
459 write_chunked
$buffer
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)