1 # converted to .tcl by html2tcl.tcl
10 <html xmlns
="http://www.w3.org/TR/REC-html40">
12 <title
>Zylin ZY1000 JTAG debugger
</title
>
13 <meta charset
="utf-8" content
="text/html" http-equiv
="Content-Type"/>
14 <link type
="text/css" rel
="stylesheet" href
="menuweb.css"/>
19 set upload_filename
/ram
/upload
22 <body style
="margin:0px;">
23 <div style
="width:974px;height:85px;">
24 <div style
="float:left;position:relative;left:32px;width:478px;">
26 <img src
="menu_cuts/logo_top.png" style
="border:0px;"/>
29 <div style
="float:left;position:relative;height:26px; width:278px;left:122px;background-image:url('menu_cuts/top_right.png');">
30 <div style
="position:relative;left:15px;top:4px;" class
="textlight">
32 append buffer
[capture version
]
37 <table style
="padding:0px;border-collapse:collapse;">
39 <td style
="width:33px;">
40 <div style
="width:20px;height:510px;">
44 <td style
="vertical-align:top;height:100%;width:140px;padding:0px;">
45 <table style
="padding:0px;border-collapse:collapse;height:100%;width:140px;">
46 <tr style
="height:59px;">
50 <td style
="width:140px;height:38px;background-image:url('menu_cuts/v_tab.png');background-repeat: no-repeat;">
51 <div style
="position:relative;left:10px;top:10px;font-weight:bold;">
52 <a href
="index.tcl" style
="">Target Status
</a
>
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
="preconfig.tcl" style
="font-weight: bold;">Select Target Config
</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
="editconfigs.tcl" style
="">Edit Configurations
</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
="reload.tcl" style
="">Reload Config Scripts
</a
>
78 <td style
="width:140px;height:35px;background-image:url('menu_cuts/v_1.png')"/>
81 <td style
="width:140px;background-image:url('menu_cuts/v_2_tile.png')"/>
84 <td style
="width:140px;height:140px;background-image:url('menu_cuts/v_3.png')"/>
88 <td style
="vertical-align:top;padding:0px;height:100%">
89 <table style
="padding:0px;border-collapse:collapse;height:100%;">
92 <table style
="padding:0px;border-collapse:collapse;">
94 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1_selected.png');background-repeat: no-repeat;">
95 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
96 <a href
="index.tcl" style
="font-weight: bold;">Config Target
</a
>
99 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
100 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
101 <a href
="flashinfo.tcl">Flash
</a
>
104 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
105 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
106 <a href
="browsemem.tcl">Memory
</a
>
109 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
110 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
111 <a href
="openocd.tcl">OpenOCD
</a
>
119 <td style
="height:30px;width:535px;background-image:url('menu_cuts/center_top.png');background-repeat: no-repeat;background-position:top right;" colspan
="6">
120 <div style
="width:500px;background-color:#ffffff;height:100%;">
126 <td style
="background-color:#ffffff;text-indent:30px;height:40px;" colspan
="6">
127 <H1
>Select Preconfigured Target
</H1
>
130 <tr style
="height:100%;">
131 <td style
="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;" colspan
="6">
136 set form_target
[formfetch form_target
]
137 set form_action
[formfetch form_action
]
139 append buffer
{<form enctype
="multipart/form-data" action
="preconfig.tcl" method
="post">}
140 if {[string compare
$form_action "Select and reload"]==0} {
141 capture_catch
"trunc /config/settings/openocd.cfg"
142 capture_catch
"append_file /config/settings/openocd.cfg script target/$form_target"
146 set form_target
[load_target
]
148 set files
[ls
/rom
/target
]
149 set files
[lunion
$files [ls
/config
/settings
/target
]]
150 set files
[lsort $files]
152 if {[string compare
$form_action "Select and reload"]!=0} {
156 <td style
="padding-top:1px;">
157 <select name
="form_target">
162 if {[string match
*.cfg
$i]} {
168 if {[string compare
$form_target $i]==0} {
170 append buffer
{selected
="selected"}
177 append buffer
{</option>
183 if {$foundTarget==0} {
186 <option selected
="selected" value
="">Preconfigured target not active
</option>
194 <td class
="buttonspacesmall"> 
</td
>
196 <input type
="submit" name
="form_action" value
="Select and reload">
198  
; 
; 
; 
;
199 <a href
="editconfigs.tcl?form_action=Load&form_selected=}
200 append buffer "target
/$form_target"
201 append buffer {">Edit target configuration
</a
>
207 append buffer
"Reloading setting(ca. 30 seconds)..."
219 set toggle_details
[formfetch toggle_details
]
220 if {[string length
$toggle_details]==0} {
223 set show_details
[load_var show_details
]
224 if {[string length
$show_details]==0} {
227 if {$toggle_details==1} {
228 set show_details
[expr 1-$show_details]
229 save_var show_details
$show_details
232 if {[string length
$console]!=0} {
235 <tr style
="height:100%;">
236 <td style
="height:100%;background-color:red;" colspan
="6">
237 <table style
="padding:0px;border-collapse:collapse;background-color:#ffffff;width:100%" class
="textgray">
238 <td style
="width:25px;"> 
;</td
>
241 if {$show_details==1} {
243 append buffer
{td style
="background-color:#dddddd;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;"}
247 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;"}
252 <a class
="openocd" href
="preconfig.tcl?toggle_details=1">
255 if {$show_details==1} {
256 append buffer
"Hide details"
259 append buffer
{<div style
="position:relative;top:7px;text-align:center;">}
260 append buffer
"Show details"
261 append buffer
{</div
>}
268 if {$show_details==1} {
269 append buffer
$console
272 append buffer
{</td
>}
274 if {$show_details!=1} {
275 append buffer
{<td
> 
;</td
>}
279 <td style
="width:25px;"> 
;</td
>
289 <td style
="height:30px;background-image:url('menu_cuts/center_bottom.png');background-repeat: no-repeat;background-position:top right;" colspan
="6">
290 <div style
="width:500px;background-color:#ffffff;height:100%;">
297 <td style
="width:6px;"/>
298 <td style
="width:245px;height:100%">
299 <table style
="padding:0px;border-collapse:collapse;height:100%;">
301 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab2_selected.png');background-repeat: no-repeat;">
302 <div style
="position:relative;top:7px;;font-weight:bold;text-align:center;width:100px;" class
="textgray">
312 <td style
="height:10px;width:245px;background-image:url('menu_cuts/right_top_small.png');" colspan
="3"/>
315 <td style
="background-color:#d8d7d7;width:245px;padding-left:10px;padding-buttom:10px;line-height:17px;" colspan
="3">
316 <a target
="_blank" href
="http://www.zylin.com/zy1000/ZY1000_Quick_Start_Guide.pdf">Quick Start Manual
</a
>
318 <a target
="_blank" href
="http://www.zylin.com/zy1000/openocd.pdf">OpenOCD Manual
</a
>
320 <a target
="_blank" href
="http://www.zylin.com/zy1000_contact.html">Contact Zylin AS
</a
>
324 <td style
="background-color:#d8d7d7;height:15px;" colspan
="3"/>
328 <table style
="padding:0px;border-collapse:collapse;">
329 <td style
="background-color:#d8d7d7;width:10px;height:1px"/>
330 <td style
="background-color:#999999;width:225px; height:1px;"/>
331 <td style
="background-color:#d8d7d7;width:10px;height:1px"/>
336 <td style
="background-color:#d8d7d7;height:15px;" colspan
="3"/>
338 <tr style
="height:100%;">
339 <td style
="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;" colspan
="3" class
="textgray">
341 <p
>ZY1000 comes with complete configurations
for various targets.
</p
>
342 <p
>These predefined configurations include reset init scripts and flash configuration.
</p
>
343 <p
><b
>Select and reload
</b
> - Select configuration and reboot ZY1000 unit.
</p
>
348 <td style
="height:30px;background-image:url('menu_cuts/right_bottom.png');" colspan
="3">
358 <img border
="0" src
="menu_cuts/logo_bottom.png"/>
427 write_chunked
$buffer