# converted to .tcl by html2tcl.tcl set buffer "" append buffer { OpenOCD debugger } set console "" set upload_filename /ram/upload append buffer {
OpenOCD
} 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 {
 

UART forwarding

} set form_baudrate [formfetch form_baudrate] if {[string length $form_baudrate]==0} { set form_baudrate [ocd_uart] set form_baudrate [string range $form_baudrate 0 [expr [string length $form_baudrate]-2]] } set form_action [formfetch form_action] append buffer {
Target baudrate:

} if {[string compare $form_action "Set baudrate"]==0} { append console [encode [ocd_uart $form_baudrate]] } append buffer {

Simple UART

This terminal window is purely for illustrative purposes. Use telnet or a terminal program to talk to the target over TCP/IP for anything but trivial case of reading/writing a few lines of texts in simple tests.

} 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
 
OpenOCD Manual
Serial port data to target is forwarded(both directions) in the simple terminal window to the left. Alternatively you can telnet } append buffer [ip] append buffer { 5555 or connect via TCP/IP from e.g. HyperTerminal.

Type "help uart" in telnet for information on how to set uart speed for target. Normally the uart speed is set from the target configuration script by adding an "uart N", where N is the baudrate.

 
} start_chunked "html" write_chunked $buffer end_chunked