1 # converted to .tcl by html2tcl.tcl
17 <html xmlns
="http://www.w3.org/TR/REC-html40">
19 <title
>OpenOCD debugger
</title
>
20 <meta charset
="utf-8" content
="text/html" http-equiv
="Content-Type"/>
21 <link type
="text/css" rel
="stylesheet" href
="menuweb.css"/>
26 set upload_filename
/ram
/upload
29 <body style
="margin:0px;">
30 <div style
="width:974px;height:85px;">
31 <div style
="float:left;position:relative;left:32px;width:478px;">
36 <div style
="float:left;position:relative;height:26px; width:278px;left:122px;background-image:url('menu_cuts/top_right.png');">
37 <div style
="position:relative;left:15px;top:4px;" class
="textlight">
39 append buffer
[capture version
]
44 <table style
="padding:0px;border-collapse:collapse;">
46 <td style
="width:33px;">
47 <div style
="width:20px;height:510px;">
51 <td style
="vertical-align:top;height:100%;width:140px;padding:0px;">
52 <table style
="padding:0px;border-collapse:collapse;height:100%;width:140px;">
53 <tr style
="height:59px;">
57 <td style
="width:140px;height:38px;background-image:url('menu_cuts/v_tab_selected.png');background-repeat: no-repeat;">
58 <div style
="position:relative;left:10px;top:10px;font-weight:bold;">
59 <a href
="flashinfo.tcl" style
="font-weight: bold;">Info
</a
>
64 <td style
="width:140px;height:38px;background-image:url('menu_cuts/v_tab.png');background-repeat: no-repeat;">
65 <div style
="position:relative;left:10px;top:10px;font-weight:bold;">
66 <a href
="erase.tcl" style
="">Erase
</a
>
71 <td style
="width:140px;height:38px;background-image:url('menu_cuts/v_tab.png');background-repeat: no-repeat;">
72 <div style
="position:relative;left:10px;top:10px;font-weight:bold;">
73 <a href
="flash.tcl" style
="">Program
/ Verify
</a
>
78 <td style
="width:140px;height:38px;background-image:url('menu_cuts/v_tab.png');background-repeat: no-repeat;">
79 <div style
="position:relative;left:10px;top:10px;font-weight:bold;">
80 <a href
="production.tcl" style
="">Production
</a
>
85 <td style
="width:140px;height:35px;background-image:url('menu_cuts/v_1.png')"/>
88 <td style
="width:140px;background-image:url('menu_cuts/v_2_tile.png')"/>
91 <td style
="width:140px;height:140px;background-image:url('menu_cuts/v_3.png')"/>
95 <td style
="vertical-align:top;padding:0px;height:100%">
96 <table style
="padding:0px;border-collapse:collapse;height:100%;">
99 <table style
="padding:0px;border-collapse:collapse;">
101 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
102 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
103 <a href
="index.tcl">Config Target
</a
>
106 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1_selected.png');background-repeat: no-repeat;">
107 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
108 <a href
="flashinfo.tcl" style
="font-weight: bold;">Flash
</a
>
111 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
112 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
113 <a href
="browsemem.tcl">Memory
</a
>
116 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
117 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
118 <a href
="openocd.tcl">OpenOCD
</a
>
126 <td style
="height:30px;width:535px;background-image:url('menu_cuts/center_top.png');background-repeat: no-repeat;background-position:top right;" colspan
="6">
127 <div style
="width:500px;background-color:#ffffff;height:100%;">
133 <td style
="background-color:#ffffff;text-indent:30px;height:40px;" colspan
="6">
134 <H1
>Flash Information
</H1
>
137 <tr style
="height:100%;">
138 <td style
="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;" colspan
="6">
140 <div style
="font-size:14px;">Configured flash banks
:</div
>
142 <code style
="white-space: nowrap;">
145 set flash_return
[ocd_flash_banks
]
146 if {[llength $flash_return]!=0} {
147 append buffer
[encode
[flash banks
]]
149 set form_action
[formfetch form_action
]
150 if {[string compare
$form_action "Reset CPU and probe flash"]==0} {
151 append console [encode
[capture_catch
"reset init"]]
152 append buffer
[encode
[capture_catch
"flash probe 0"]]
153 append buffer
[encode
[capture_catch
"flash info 0"]]
156 append buffer
"No flash bank configured."
161 <form action
="flashinfo.tcl" method
="post">
162 <input type
="submit" name
="form_action" value
="Reset CPU and probe flash">
166 foreach a
[ocd_flash_banks
] {
167 append buffer
"Flash bank at [format "0x
%08x size
0x
%08x
" $a(base) $a(size)]: "
170 <form action
="downloadmem.tcl" method
="post">
171 <input type
="hidden" name
="form_address" value
="}
172 append buffer [format "0x
%08x
" $a(base)]
174 <input type
="hidden" name
="form_length" value
="}
175 append buffer [format "0x
%08x
" $a(size)]
178 <input type
="submit" value
="Download" name
="form_action">
194 set toggle_details
[formfetch toggle_details
]
195 if {[string length
$toggle_details]==0} {
198 set show_details
[load_var show_details
]
199 if {[string length
$show_details]==0} {
202 if {$toggle_details==1} {
203 set show_details
[expr 1-$show_details]
204 save_var show_details
$show_details
207 if {[string length
$console]!=0} {
210 <tr style
="height:100%;">
211 <td style
="height:100%;background-color:red;" colspan
="6">
212 <table style
="padding:0px;border-collapse:collapse;background-color:#ffffff;width:100%" class
="textgray">
213 <td style
="width:25px;"> 
;</td
>
216 if {$show_details==1} {
218 append buffer
{td style
="background-color:#dddddd;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;"}
222 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;"}
227 <a class
="openocd" href
="flashinfo.tcl?toggle_details=1">
230 if {$show_details==1} {
231 append buffer
"Hide details"
234 append buffer
{<div style
="position:relative;top:7px;text-align:center;">}
235 append buffer
"Show details"
236 append buffer
{</div
>}
243 if {$show_details==1} {
244 append buffer
$console
247 append buffer
{</td
>}
249 if {$show_details!=1} {
250 append buffer
{<td
> 
;</td
>}
254 <td style
="width:25px;"> 
;</td
>
264 <td style
="height:30px;background-image:url('menu_cuts/center_bottom.png');background-repeat: no-repeat;background-position:top right;" colspan
="6">
265 <div style
="width:500px;background-color:#ffffff;height:100%;">
272 <td style
="width:6px;"/>
273 <td style
="width:245px;height:100%">
274 <table style
="padding:0px;border-collapse:collapse;height:100%;">
276 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab2_selected.png');background-repeat: no-repeat;">
277 <div style
="position:relative;top:7px;;font-weight:bold;text-align:center;width:100px;" class
="textgray">
287 <td style
="height:10px;width:245px;background-image:url('menu_cuts/right_top_small.png');" colspan
="3"/>
290 <td style
="background-color:#d8d7d7;width:245px;padding-left:10px;padding-buttom:10px;line-height:17px;" colspan
="3">
291 <a target
="_blank" href
="http://openocd.berlios.de/doc/openocd.pdf">OpenOCD Manual
</a
>
296 <td style
="background-color:#d8d7d7;height:15px;" colspan
="3"/>
300 <table style
="padding:0px;border-collapse:collapse;">
301 <td style
="background-color:#d8d7d7;width:10px;height:1px"/>
302 <td style
="background-color:#999999;width:225px; height:1px;"/>
303 <td style
="background-color:#d8d7d7;width:10px;height:1px"/>
308 <td style
="background-color:#d8d7d7;height:15px;" colspan
="3"/>
310 <tr style
="height:100%;">
311 <td style
="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;" colspan
="3" class
="textgray">
313 <p
>Here you will find information about the flash chips that you have
314 in your configuration.
<p
/>
315 <p
><b
>Reset CPU and probe flash
</b
> - This will reset the CPU and show
316 you more detailed information about your flash. This includes information about
317 the different sectors in the flash
, and the flash driver used.
</p
>
322 <td style
="height:30px;background-image:url('menu_cuts/right_bottom.png');" colspan
="3">
380 write_chunked
$buffer