1 # converted to .tcl by html2tcl.tcl
43 <html xmlns
="http://www.w3.org/TR/REC-html40">
45 <title
>OpenOCD debugger
</title
>
46 <meta charset
="utf-8" content
="text/html" http-equiv
="Content-Type"/>
47 <link type
="text/css" rel
="stylesheet" href
="menuweb.css"/>
52 set upload_filename
/ram
/upload
55 <body style
="margin:0px;">
56 <div style
="width:974px;height:85px;">
57 <div style
="float:left;position:relative;left:32px;width:478px;">
62 <div style
="float:left;position:relative;height:26px; width:278px;left:122px;background-image:url('menu_cuts/top_right.png');">
63 <div style
="position:relative;left:15px;top:4px;" class
="textlight">
65 append buffer
[capture version
]
70 <table style
="padding:0px;border-collapse:collapse;">
72 <td style
="width:33px;">
73 <div style
="width:20px;height:510px;">
77 <td style
="vertical-align:top;height:100%;width:140px;padding:0px;">
78 <table style
="padding:0px;border-collapse:collapse;height:100%;width:140px;">
79 <tr style
="height:59px;">
83 <td style
="width:140px;height:38px;background-image:url('menu_cuts/v_tab_selected.png');background-repeat: no-repeat;">
84 <div style
="position:relative;left:10px;top:10px;font-weight:bold;">
85 <a href
="openocd.tcl" style
="font-weight: bold;">Run Command
</a
>
90 <td style
="width:140px;height:38px;background-image:url('menu_cuts/v_tab.png');background-repeat: no-repeat;">
91 <div style
="position:relative;left:10px;top:10px;font-weight:bold;">
92 <a href
="guiupload.tcl" style
="">Upload File
</a
>
97 <td style
="width:140px;height:35px;background-image:url('menu_cuts/v_1.png')"/>
100 <td style
="width:140px;background-image:url('menu_cuts/v_2_tile.png')"/>
103 <td style
="width:140px;height:140px;background-image:url('menu_cuts/v_3.png')"/>
107 <td style
="vertical-align:top;padding:0px;height:100%">
108 <table style
="padding:0px;border-collapse:collapse;height:100%;">
111 <table style
="padding:0px;border-collapse:collapse;">
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
="index.tcl">Config Target
</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
="flashinfo.tcl">Flash
</a
>
123 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
124 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
125 <a href
="browsemem.tcl">Memory
</a
>
128 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1_selected.png');background-repeat: no-repeat;">
129 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
130 <a href
="openocd.tcl" style
="font-weight: bold;">OpenOCD
</a
>
138 <td style
="height:30px;width:535px;background-image:url('menu_cuts/center_top.png');background-repeat: no-repeat;background-position:top right;" colspan
="6">
139 <div style
="width:500px;background-color:#ffffff;height:100%;">
145 <td style
="background-color:#ffffff;text-indent:30px;height:40px;" colspan
="6">
149 <tr style
="height:100%;">
150 <td style
="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;" colspan
="6">
154 set form_command
[formfetch form_command
]
157 if {[string length
$form_command]>0} {
158 set form_edittext
[capture_catch
{eval $form_command}]
161 append buffer
{<form action
="openocd.tcl" method
="post">} "\n"
162 append buffer
{Command
<br
>}
163 append buffer
{<textarea style
="overflow:auto;" rows
="5" cols
="65" name
="form_command" wrap
="off">}
164 append buffer
[to_textarea
$form_command]
165 append buffer
{</textarea
><br
>}
166 append buffer
{<input type
="submit" value
="Run" name
="form_action" ><br
>}
167 append buffer
{<textarea style
="overflow:auto;" rows
="21" cols
="65" name
="form_edittext" readonly
=1 wrap
="off">}
168 append buffer
[to_textarea
$form_edittext]
169 append buffer
{</textarea
><br
>}
171 append buffer
{</form
>} "\n"
181 set toggle_details
[formfetch toggle_details
]
182 if {[string length
$toggle_details]==0} {
185 set show_details
[load_var show_details
]
186 if {[string length
$show_details]==0} {
189 if {$toggle_details==1} {
190 set show_details
[expr 1-$show_details]
191 save_var show_details
$show_details
194 if {[string length
$console]!=0} {
197 <tr style
="height:100%;">
198 <td style
="height:100%;background-color:red;" colspan
="6">
199 <table style
="padding:0px;border-collapse:collapse;background-color:#ffffff;width:100%" class
="textgray">
200 <td style
="width:25px;"> 
;</td
>
203 if {$show_details==1} {
205 append buffer
{td style
="background-color:#dddddd;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;"}
209 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;"}
214 <a class
="openocd" href
="openocd.tcl?toggle_details=1">
217 if {$show_details==1} {
218 append buffer
"Hide details"
221 append buffer
{<div style
="position:relative;top:7px;text-align:center;">}
222 append buffer
"Show details"
223 append buffer
{</div
>}
230 if {$show_details==1} {
231 append buffer
$console
234 append buffer
{</td
>}
236 if {$show_details!=1} {
237 append buffer
{<td
> 
;</td
>}
241 <td style
="width:25px;"> 
;</td
>
251 <td style
="height:30px;background-image:url('menu_cuts/center_bottom.png');background-repeat: no-repeat;background-position:top right;" colspan
="6">
252 <div style
="width:500px;background-color:#ffffff;height:100%;">
259 <td style
="width:6px;"/>
260 <td style
="width:245px;height:100%">
261 <table style
="padding:0px;border-collapse:collapse;height:100%;">
263 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab2_selected.png');background-repeat: no-repeat;">
264 <div style
="position:relative;top:7px;;font-weight:bold;text-align:center;width:100px;" class
="textgray">
274 <td style
="height:10px;width:245px;background-image:url('menu_cuts/right_top_small.png');" colspan
="3"/>
277 <td style
="background-color:#d8d7d7;width:245px;padding-left:10px;padding-buttom:10px;line-height:17px;" colspan
="3">
278 <a target
="_blank" href
="http://openocd.berlios.de/doc/openocd.pdf">OpenOCD Manual
</a
>
283 <td style
="background-color:#d8d7d7;height:15px;" colspan
="3"/>
287 <table style
="padding:0px;border-collapse:collapse;">
288 <td style
="background-color:#d8d7d7;width:10px;height:1px"/>
289 <td style
="background-color:#999999;width:225px; height:1px;"/>
290 <td style
="background-color:#d8d7d7;width:10px;height:1px"/>
295 <td style
="background-color:#d8d7d7;height:15px;" colspan
="3"/>
297 <tr style
="height:100%;">
298 <td style
="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;" colspan
="3" class
="textgray">
300 <p
>Run tcl statement
(s
). Add
"ocd_" prefix to OpenOCD commands otherwise
301 there will be no output
, e.g.
"reset init" use
"ocd_reset init".
303 <p
><a href
="/ram/log">Click here to download log
</a
>.
</p
>
304 <p
>To download log you can also use commands like
"wget http://}
306 append buffer {/ram/log", or
307 point your web browser to said address.
</p
>
309 You can also execute tcl commands using curl from your developer PC
:
312 curl
--form form_command
=ocd_version
}
314 append buffer
{runtcl.tcl
321 <td style
="height:30px;background-image:url('menu_cuts/right_bottom.png');" colspan
="3">
353 write_chunked
$buffer