1 # converted to .tcl by html2tcl.tcl
57 <html xmlns
="http://www.w3.org/TR/REC-html40">
59 <title
>OpenOCD debugger
</title
>
60 <meta charset
="utf-8" content
="text/html" http-equiv
="Content-Type"/>
61 <link type
="text/css" rel
="stylesheet" href
="menuweb.css"/>
66 set upload_filename
/ram
/upload
69 <body style
="margin:0px;">
70 <div style
="width:974px;height:85px;">
71 <div style
="float:left;position:relative;left:32px;width:478px;">
76 <div style
="float:left;position:relative;height:26px; width:278px;left:122px;background-image:url('menu_cuts/top_right.png');">
77 <div style
="position:relative;left:15px;top:4px;" class
="textlight">
79 append buffer
[capture version
]
84 <table style
="padding:0px;border-collapse:collapse;">
86 <td style
="width:33px;">
87 <div style
="width:20px;height:510px;">
91 <td style
="vertical-align:top;height:100%;width:140px;padding:0px;">
92 <table style
="padding:0px;border-collapse:collapse;height:100%;width:140px;">
93 <tr style
="height:59px;">
97 <td style
="width:140px;height:38px;background-image:url('menu_cuts/v_tab.png');background-repeat: no-repeat;">
98 <div style
="position:relative;left:10px;top:10px;font-weight:bold;">
99 <a href
="index.tcl" style
="">Target Status
</a
>
104 <td style
="width:140px;height:35px;background-image:url('menu_cuts/v_1.png')"/>
107 <td style
="width:140px;background-image:url('menu_cuts/v_2_tile.png')"/>
110 <td style
="width:140px;height:140px;background-image:url('menu_cuts/v_3.png')"/>
114 <td style
="vertical-align:top;padding:0px;height:100%">
115 <table style
="padding:0px;border-collapse:collapse;height:100%;">
118 <table style
="padding:0px;border-collapse:collapse;">
120 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1_selected.png');background-repeat: no-repeat;">
121 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
122 <a href
="index.tcl" style
="font-weight: bold;">Config Target
</a
>
125 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
126 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
127 <a href
="flashinfo.tcl">Flash
</a
>
130 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
131 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
132 <a href
="browsemem.tcl">Memory
</a
>
135 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
136 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
137 <a href
="openocd.tcl">OpenOCD
</a
>
145 <td style
="height:30px;width:535px;background-image:url('menu_cuts/center_top.png');background-repeat: no-repeat;background-position:top right;" colspan
="6">
146 <div style
="width:500px;background-color:#ffffff;height:100%;">
152 <td style
="background-color:#ffffff;text-indent:30px;height:40px;" colspan
="6">
153 <H1
>UART forwarding
</H1
>
156 <tr style
="height:100%;">
157 <td style
="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;" colspan
="6">
160 set form_baudrate
[formfetch form_baudrate
]
161 if {[string length
$form_baudrate]==0} {
162 set form_baudrate
[ocd_uart
]
163 set form_baudrate
[string range
$form_baudrate 0 [expr [string length
$form_baudrate]-2]]
165 set form_action
[formfetch form_action
]
168 <form action
="terminal.tcl" method
="post">
170 <select name
="form_baudrate">
173 foreach i
{9600 19200 38400 57600 115200} {
177 if {[string compare
$form_baudrate $i]==0} { append buffer
{selected
="selected"} }
183 append buffer
{</option>
192 <input type
="submit" name
="form_action" value
="Set baudrate" >
196 if {[string compare
$form_action "Set baudrate"]==0} {
197 append console [encode
[ocd_uart
$form_baudrate]]
203 This terminal window is purely
for illustrative purposes. Use telnet or a terminal program
204 to talk to the target over TCP
/IP
for anything but trivial case of reading
/writing a few
205 lines of texts in simple tests.
212 set toggle_details
[formfetch toggle_details
]
213 if {[string length
$toggle_details]==0} {
216 set show_details
[load_var show_details
]
217 if {[string length
$show_details]==0} {
220 if {$toggle_details==1} {
221 set show_details
[expr 1-$show_details]
222 save_var show_details
$show_details
225 if {[string length
$console]!=0} {
228 <tr style
="height:100%;">
229 <td style
="height:100%;background-color:red;" colspan
="6">
230 <table style
="padding:0px;border-collapse:collapse;background-color:#ffffff;width:100%" class
="textgray">
231 <td style
="width:25px;"> 
;</td
>
234 if {$show_details==1} {
236 append buffer
{td style
="background-color:#dddddd;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;"}
240 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;"}
245 <a class
="openocd" href
="terminal.tcl?toggle_details=1">
248 if {$show_details==1} {
249 append buffer
"Hide details"
252 append buffer
{<div style
="position:relative;top:7px;text-align:center;">}
253 append buffer
"Show details"
254 append buffer
{</div
>}
261 if {$show_details==1} {
262 append buffer
$console
265 append buffer
{</td
>}
267 if {$show_details!=1} {
268 append buffer
{<td
> 
;</td
>}
272 <td style
="width:25px;"> 
;</td
>
282 <td style
="height:30px;background-image:url('menu_cuts/center_bottom.png');background-repeat: no-repeat;background-position:top right;" colspan
="6">
283 <div style
="width:500px;background-color:#ffffff;height:100%;">
290 <td style
="width:6px;"/>
291 <td style
="width:245px;height:100%">
292 <table style
="padding:0px;border-collapse:collapse;height:100%;">
294 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab2_selected.png');background-repeat: no-repeat;">
295 <div style
="position:relative;top:7px;;font-weight:bold;text-align:center;width:100px;" class
="textgray">
305 <td style
="height:10px;width:245px;background-image:url('menu_cuts/right_top_small.png');" colspan
="3"/>
308 <td style
="background-color:#d8d7d7;width:245px;padding-left:10px;padding-buttom:10px;line-height:17px;" colspan
="3">
309 <a target
="_blank" href
="http://openocd.berlios.de/doc/openocd.pdf">OpenOCD Manual
</a
>
314 <td style
="background-color:#d8d7d7;height:15px;" colspan
="3"/>
318 <table style
="padding:0px;border-collapse:collapse;">
319 <td style
="background-color:#d8d7d7;width:10px;height:1px"/>
320 <td style
="background-color:#999999;width:225px; height:1px;"/>
321 <td style
="background-color:#d8d7d7;width:10px;height:1px"/>
326 <td style
="background-color:#d8d7d7;height:15px;" colspan
="3"/>
328 <tr style
="height:100%;">
329 <td style
="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;" colspan
="3" class
="textgray">
331 Serial port data to target is forwarded
(both directions
) in the simple terminal window
332 to the left. Alternatively you can
<b
>telnet
}
334 append buffer
{ 5555</b
>
335 or connect via TCP
/IP from e.g. HyperTerminal.
337 Type
"help uart" in telnet
for information on how to
set uart speed
for target. Normally
338 the uart speed is
set from the target configuration script by adding an
"uart N", where
344 <td style
="height:30px;background-image:url('menu_cuts/right_bottom.png');" colspan
="3">
362 write_chunked
$buffer