1 # converted to .tcl by html2tcl.tcl
\r
19 <html xmlns="http://www.w3.org/TR/REC-html40">
\r
21 <title>OpenOCD debugger</title>
\r
22 <meta charset="utf-8" content="text/html" http-equiv="Content-Type"/>
\r
23 <link type="text/css" rel="stylesheet" href="menuweb.css"/>
\r
28 set upload_filename /ram/upload
\r
31 <body style="margin:0px;">
\r
32 <div style="width:974px;height:85px;">
\r
33 <div style="float:left;position:relative;left:32px;width:478px;">
\r
38 <div style="float:left;position:relative;height:26px; width:278px;left:122px;background-image:url('menu_cuts/top_right.png');">
\r
39 <div style="position:relative;left:15px;top:4px;" class="textlight">
\r
41 append buffer [capture version]
\r
46 <table style="padding:0px;border-collapse:collapse;">
\r
48 <td style="width:33px;">
\r
49 <div style="width:20px;height:510px;">
\r
53 <td style="vertical-align:top;height:100%;width:140px;padding:0px;">
\r
54 <table style="padding:0px;border-collapse:collapse;height:100%;width:140px;">
\r
55 <tr style="height:59px;">
\r
59 <td style="width:140px;height:38px;background-image:url('menu_cuts/v_tab_selected.png');background-repeat: no-repeat;">
\r
60 <div style="position:relative;left:10px;top:10px;font-weight:bold;">
\r
61 <a href="flashinfo.tcl" style="font-weight: bold;">Info</a>
\r
66 <td style="width:140px;height:38px;background-image:url('menu_cuts/v_tab.png');background-repeat: no-repeat;">
\r
67 <div style="position:relative;left:10px;top:10px;font-weight:bold;">
\r
68 <a href="erase.tcl" style="">Erase</a>
\r
73 <td style="width:140px;height:38px;background-image:url('menu_cuts/v_tab.png');background-repeat: no-repeat;">
\r
74 <div style="position:relative;left:10px;top:10px;font-weight:bold;">
\r
75 <a href="flash.tcl" style="">Program / Verify</a>
\r
80 <td style="width:140px;height:38px;background-image:url('menu_cuts/v_tab.png');background-repeat: no-repeat;">
\r
81 <div style="position:relative;left:10px;top:10px;font-weight:bold;">
\r
82 <a href="production.tcl" style="">Production</a>
\r
87 <td style="width:140px;height:35px;background-image:url('menu_cuts/v_1.png')"/>
\r
90 <td style="width:140px;background-image:url('menu_cuts/v_2_tile.png')"/>
\r
93 <td style="width:140px;height:140px;background-image:url('menu_cuts/v_3.png')"/>
\r
97 <td style="vertical-align:top;padding:0px;height:100%">
\r
98 <table style="padding:0px;border-collapse:collapse;height:100%;">
\r
101 <table style="padding:0px;border-collapse:collapse;">
\r
103 <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
\r
104 <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
\r
105 <a href="index.tcl">Config Target</a>
\r
108 <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1_selected.png');background-repeat: no-repeat;">
\r
109 <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
\r
110 <a href="flashinfo.tcl" style="font-weight: bold;">Flash</a>
\r
113 <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
\r
114 <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
\r
115 <a href="browsemem.tcl">Memory</a>
\r
118 <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
\r
119 <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
\r
120 <a href="openocd.tcl">OpenOCD</a>
\r
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">
\r
129 <div style="width:500px;background-color:#ffffff;height:100%;">
\r
135 <td style="background-color:#ffffff;text-indent:30px;height:40px;" colspan="6">
\r
136 <H1>Flash Information</H1>
\r
139 <tr style="height:100%;">
\r
140 <td style="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;" colspan="6">
\r
142 <div style="font-size:14px;">Configured flash banks:</div>
\r
144 <code style="white-space: nowrap;">
\r
147 set flash_return [ocd_flash_banks]
\r
148 if {[llength $flash_return]!=0} {
\r
149 append buffer [encode [flash banks]]
\r
151 set form_action [formfetch form_action]
\r
152 if {[string compare $form_action "Reset CPU and probe flash"]==0} {
\r
153 append console [encode [capture_catch "reset init"]]
\r
154 append buffer [encode [capture_catch "flash probe 0"]]
\r
155 append buffer [encode [capture_catch "flash info 0"]]
\r
158 append buffer "No flash bank configured."
\r
163 <form action="flashinfo.tcl" method="post">
\r
164 <input type="submit" name="form_action" value="Reset CPU and probe flash">
\r
168 foreach a [ocd_flash_banks] {
\r
169 append buffer "Flash bank at [format "0x%08x size 0x%08x" $a(base) $a(size)]: "
\r
172 <form action="downloadmem.tcl" method="post">
\r
173 <input type="hidden" name="form_address" value="}
\r
174 append buffer [format "0x%08x" $a(base)]
\r
176 <input type="hidden" name="form_length" value="}
\r
177 append buffer [format "0x%08x" $a(size)]
\r
180 <input type="submit" value="Download" name="form_action">
\r
196 set toggle_details [formfetch toggle_details]
\r
197 if {[string length $toggle_details]==0} {
\r
198 set toggle_details 0
\r
200 set show_details [load_var show_details]
\r
201 if {[string length $show_details]==0} {
\r
204 if {$toggle_details==1} {
\r
205 set show_details [expr 1-$show_details]
\r
206 save_var show_details $show_details
\r
209 if {[string length $console]!=0} {
\r
212 <tr style="height:100%;">
\r
213 <td style="height:100%;background-color:red;" colspan="6">
\r
214 <table style="padding:0px;border-collapse:collapse;background-color:#ffffff;width:100%" class="textgray">
\r
215 <td style="width:25px;"> </td>
\r
218 if {$show_details==1} {
\r
220 append buffer {td style="background-color:#dddddd;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;"}
\r
224 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;"}
\r
229 <a class="openocd" href="flashinfo.tcl?toggle_details=1">
\r
232 if {$show_details==1} {
\r
233 append buffer "Hide details"
\r
234 append buffer <br/>
\r
236 append buffer {<div style="position:relative;top:7px;text-align:center;">}
\r
237 append buffer "Show details"
\r
238 append buffer {</div>}
\r
245 if {$show_details==1} {
\r
246 append buffer $console
\r
249 append buffer {</td>}
\r
251 if {$show_details!=1} {
\r
252 append buffer {<td> </td>}
\r
256 <td style="width:25px;"> </td>
\r
266 <td style="height:30px;background-image:url('menu_cuts/center_bottom.png');background-repeat: no-repeat;background-position:top right;" colspan="6">
\r
267 <div style="width:500px;background-color:#ffffff;height:100%;">
\r
274 <td style="width:6px;"/>
\r
275 <td style="width:245px;height:100%">
\r
276 <table style="padding:0px;border-collapse:collapse;height:100%;">
\r
278 <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab2_selected.png');background-repeat: no-repeat;">
\r
279 <div style="position:relative;top:7px;;font-weight:bold;text-align:center;width:100px;" class="textgray">
\r
289 <td style="height:10px;width:245px;background-image:url('menu_cuts/right_top_small.png');" colspan="3"/>
\r
292 <td style="background-color:#d8d7d7;width:245px;padding-left:10px;padding-buttom:10px;line-height:17px;" colspan="3">
\r
293 <a target="_blank" href="http://openocd.berlios.de/doc/openocd.pdf">OpenOCD Manual</a>
\r
298 <td style="background-color:#d8d7d7;height:15px;" colspan="3"/>
\r
302 <table style="padding:0px;border-collapse:collapse;">
\r
303 <td style="background-color:#d8d7d7;width:10px;height:1px"/>
\r
304 <td style="background-color:#999999;width:225px; height:1px;"/>
\r
305 <td style="background-color:#d8d7d7;width:10px;height:1px"/>
\r
310 <td style="background-color:#d8d7d7;height:15px;" colspan="3"/>
\r
312 <tr style="height:100%;">
\r
313 <td style="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;" colspan="3" class="textgray">
\r
315 <p>Here you will find information about the flash chips that you have
\r
316 in your configuration.<p/>
\r
317 <p><b>Reset CPU and probe flash</b> - This will reset the CPU and show
\r
318 you more detailed information about your flash. This includes information about
\r
319 the different sectors in the flash, and the flash driver used.</p>
\r
324 <td style="height:30px;background-image:url('menu_cuts/right_bottom.png');" colspan="3">
\r
381 start_chunked "html"
\r
382 write_chunked $buffer
\r