# converted to .tcl by html2tcl.tcl set buffer "" append buffer { Zylin ZY1000 JTAG debugger } set console "" set upload_filename /ram/upload append buffer {
} append buffer [capture version] append buffer {
 
} set toggle_details [formfetch toggle_details] if {[string length $toggle_details]==0} { set toggle_details 0 } set show_details [load_var show_details] if {[string length $show_details]==0} { set show_details 0 } if {$toggle_details==1} { set show_details [expr 1-$show_details] save_var show_details $show_details } if {[string length $console]!=0} { append buffer { } } append buffer {
 

Upgrade ZY1000 Firmware

} set form_action [formfetch form_action]; set form_filecontent [formfetch form_filecontent]; append buffer {
} if {[string compare $form_action "Upload"]==0} { if [string match ZylinPhiFirmware* $form_filecontent]==1 { set form_filename /config/firmware.phi puts "Writing firmware to $form_filename" set fp [aio.open $form_filename w]; $fp puts -nonewline $form_filecontent $fp close puts "Done writing firmware to $form_filename" append buffer "
Upgraded Zylin JTAG, rebooting (wait ca. 30 seconds)...

" reboot } else { append buffer "
Not a valid Zylin JTAG firmware file.
" } } elseif {[string compare $form_action "Restore factory settings"]==0} { proc rmdir { dir } { set entries {} catch {set entries [ls $dir]} err foreach { entry } $entries { rmdir $dir/$entry rm $dir/$entry } } rmdir /config/settings reboot append buffer "Restoring factory settings (wait ca. 30 seconds)...
" } else { append buffer {
Upgrade Zylin JTAG firmware + reboot.

} append buffer {
} append buffer {
 
 
} append buffer {
} append buffer {
} append buffer {

} } append buffer {
} if {$show_details==1} { append buffer < append buffer {td style="background-color:#dddddd;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;"} append buffer > } else { append buffer < 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;"} append buffer > } append buffer { } if {$show_details==1} { append buffer "Hide details" append buffer
} else { append buffer {
} append buffer "Show details" append buffer {
} } append buffer {
} if {$show_details==1} { append buffer $console } append buffer {} if {$show_details!=1} { append buffer {} } append buffer {
   
 
Documentation
 
Quick Start Manual
OpenOCD Manual
Contact Zylin AS
Upload new firmware file to ZY1000, verify that it is a valid ZY1000 firmware file, and upgrade flash.

Restore factory settings restores all factory settings except the TCP/IP settings.

The current version of the firmware is visible at the top of the web page.

ZY1000 firmware can also be upgraded using serial port YModem upload.

Check for new firmware at http://www.zylin.com/zy1000.html

 
} start_chunked "html" write_chunked $buffer end_chunked