1 # converted to .tcl by html2tcl.tcl
19 <html xmlns
="http://www.w3.org/TR/REC-html40">
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"/>
28 set upload_filename
/ram
/upload
31 <body style
="margin:0px;">
32 <div style
="width:974px;height:85px;">
33 <div style
="float:left;position:relative;left:32px;width:478px;">
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">
41 append buffer
[capture version
]
46 <table style
="padding:0px;border-collapse:collapse;">
48 <td style
="width:33px;">
49 <div style
="width:20px;height:510px;">
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;">
59 <td style
="width:140px;height:38px;background-image:url('menu_cuts/v_tab.png');background-repeat: no-repeat;">
60 <div style
="position:relative;left:10px;top:10px;font-weight:bold;">
61 <a href
="flashinfo.tcl" style
="">Info
</a
>
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
>
73 <td style
="width:140px;height:38px;background-image:url('menu_cuts/v_tab_selected.png');background-repeat: no-repeat;">
74 <div style
="position:relative;left:10px;top:10px;font-weight:bold;">
75 <a href
="flash.tcl" style
="font-weight: bold;">Program
/ Verify
</a
>
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
>
87 <td style
="width:140px;height:35px;background-image:url('menu_cuts/v_1.png')"/>
90 <td style
="width:140px;background-image:url('menu_cuts/v_2_tile.png')"/>
93 <td style
="width:140px;height:140px;background-image:url('menu_cuts/v_3.png')"/>
97 <td style
="vertical-align:top;padding:0px;height:100%">
98 <table style
="padding:0px;border-collapse:collapse;height:100%;">
101 <table style
="padding:0px;border-collapse:collapse;">
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
>
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
>
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
>
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
>
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%;">
135 <td style
="background-color:#ffffff;text-indent:30px;height:40px;" colspan
="6">
136 <H1
>Program
/ Verify Flash
</H1
>
139 <tr style
="height:100%;">
140 <td style
="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;" colspan
="6">
145 set form_offset
[formfetch form_offset
]
146 set form_action
[formfetch form_action
]
147 set form_type
[formfetch form_type
]
151 catch {set post
$post_data} err
153 if {[string compare
$form_offset ""]==0} {
156 if {[string compare
$form_type ""]==0} {
161 append buffer
{<code style
="white-space: nowrap;">}
165 append buffer
{<form enctype
="multipart/form-data" action
="flash.tcl" method
="post">}
167 set action_reset
[expr {[string length
$form_action]!=0}]
168 set action_flash
[expr {[string compare
$form_action "Flash"]==0 ||
[string compare
$form_action "Flash and verify"]==0}]
169 set action_verify
[expr {[string compare
$form_action "Verify"]==0 ||
[string compare
$form_action "Flash and verify"]==0}]
172 append console [encode
[capture_catch
"reset init"]]
179 append buffer
{<table
>}
180 append buffer
{<tr
><td class
="formtext">File
</td
><td
><input type
="file" name
="form_filecontent"></td
></tr
>}
181 append buffer
"<tr><td class=\"formtext\" >Offset</td><td><input type=\"text\" name=\"form_offset\" value=\"$form_offset\"></td></tr>"
185 <tr
><td class
="formtext" style
="padding-top:1px;">Type
</td
><td
>
186 <select name
="form_type">
189 if {[string compare
$form_type ""]==0} { append buffer
{selected
="selected"} }
191 value
="">auto
</option>
194 if {[string compare
$form_type "elf"]==0} { append buffer
{selected
="selected"} }
196 value
="elf">elf
</option>
199 if {[string compare
$form_type "bin"]==0} { append buffer
{selected
="selected"} }
201 value
="bin">binary</option>
204 if {[string compare
$form_type "ihex"]==0} { append buffer
{selected
="selected"} }
206 value
="ihex">ihex
</option>
207 <!-- broken
<option value
="s19">s19
</option> -->
217 <tr
><td style
="height:15px;width:535px;"> 
</td
></tr
>
218 <tr
><td style
="height:1px;width:535px;background-color:#a2c5d1;"></td
></tr
>
219 <tr
><td style
="height:15px;width:535px;"> 
</td
></tr
>
223 <td
><input type
="submit" name
="form_action" value
="Flash" ></td
>
224 <td class
="buttonspacesmall"></td
><td
><input type
="submit" name
="form_action" value
="Flash and verify" ></td
>
225 <td class
="buttonspacesmall"></td
><td
><input type
="submit" name
="form_action" value
="Verify" ></td
>
232 if {$action_flash||
$action_verify} {
233 catch {writeform form_filecontent
$upload_filename} result
234 append console [encode
$result]
238 append console [encode
[capture_catch
"halt"]]
240 if {[catch {capture_catch
{eval "flash write_image erase $upload_filename $form_offset $form_type"}} result
]} {
241 append buffer
"Flash write failed<br>"
242 append console [encode
$result]
244 append buffer
[encode
$result]
245 append buffer
"Flash write succeed<br>"
249 if {$action_verify} {
250 append console [encode
[capture_catch
"halt"]]
252 if {[catch {capture_catch
{eval "verify_image $upload_filename $form_offset $form_type"}} result
]} {
253 append buffer
"Verify failed<br>"
254 append console [encode
$result]
256 append buffer
[encode
$result]
257 append buffer
"Verify succeed<br>"
271 set toggle_details
[formfetch toggle_details
]
272 if {[string length
$toggle_details]==0} {
275 set show_details
[load_var show_details
]
276 if {[string length
$show_details]==0} {
279 if {$toggle_details==1} {
280 set show_details
[expr 1-$show_details]
281 save_var show_details
$show_details
284 if {[string length
$console]!=0} {
287 <tr style
="height:100%;">
288 <td style
="height:100%;background-color:red;" colspan
="6">
289 <table style
="padding:0px;border-collapse:collapse;background-color:#ffffff;width:100%" class
="textgray">
290 <td style
="width:25px;"> 
;</td
>
293 if {$show_details==1} {
295 append buffer
{td style
="background-color:#dddddd;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;"}
299 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;"}
304 <a class
="openocd" href
="flash.tcl?toggle_details=1">
307 if {$show_details==1} {
308 append buffer
"Hide details"
311 append buffer
{<div style
="position:relative;top:7px;text-align:center;">}
312 append buffer
"Show details"
313 append buffer
{</div
>}
320 if {$show_details==1} {
321 append buffer
$console
324 append buffer
{</td
>}
326 if {$show_details!=1} {
327 append buffer
{<td
> 
;</td
>}
331 <td style
="width:25px;"> 
;</td
>
341 <td style
="height:30px;background-image:url('menu_cuts/center_bottom.png');background-repeat: no-repeat;background-position:top right;" colspan
="6">
342 <div style
="width:500px;background-color:#ffffff;height:100%;">
349 <td style
="width:6px;"/>
350 <td style
="width:245px;height:100%">
351 <table style
="padding:0px;border-collapse:collapse;height:100%;">
353 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab2_selected.png');background-repeat: no-repeat;">
354 <div style
="position:relative;top:7px;;font-weight:bold;text-align:center;width:100px;" class
="textgray">
364 <td style
="height:10px;width:245px;background-image:url('menu_cuts/right_top_small.png');" colspan
="3"/>
367 <td style
="background-color:#d8d7d7;width:245px;padding-left:10px;padding-buttom:10px;line-height:17px;" colspan
="3">
368 <a target
="_blank" href
="http://openocd.berlios.de/doc/openocd.pdf">OpenOCD Manual
</a
>
373 <td style
="background-color:#d8d7d7;height:15px;" colspan
="3"/>
377 <table style
="padding:0px;border-collapse:collapse;">
378 <td style
="background-color:#d8d7d7;width:10px;height:1px"/>
379 <td style
="background-color:#999999;width:225px; height:1px;"/>
380 <td style
="background-color:#d8d7d7;width:10px;height:1px"/>
385 <td style
="background-color:#d8d7d7;height:15px;" colspan
="3"/>
387 <tr style
="height:100%;">
388 <td style
="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;" colspan
="3" class
="textgray">
390 <p
>Program and
/or verify the flash on your target.
</p
>
391 <p
><b
>Flash
</b
> - Halt CPU
, automatically erase flash
if required and program flash with
image.
</p
>
392 <p
><b
>Flash and verify
</b
> - Programs the flash and verifies the programmed flash content is correct.
</p
>
393 <p
><b
>Verify
</b
> - Halt CPU and verify
image in flash or RAM.
</p
>
394 <p
><b
>Offset
</b
> - This value is added to the address of the
image.
<br
>
395 Binary images start at address
0 by
default, whereas elf and ihex have addresses encoded into the
image.
<br
>
396 Typically
0 for elf
/ihex and the address to write the
image to
for binary files.
</p
>
401 <td style
="height:30px;background-image:url('menu_cuts/right_bottom.png');" colspan
="3">
457 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)