2008-12-23 12:52:14 +00:00
# converted to .tcl by html2tcl.tcl
set buffer " "
append buffer {
< html xmlns= " h t t p : / / w w w . w 3 . o r g / T R / R E C - h t m l 4 0 " >
< head >
< title > OpenOCD debugger< / title>
< meta charset= " u t f - 8 " content= " t e x t / h t m l " http-equiv= " C o n t e n t - T y p e " / >
< link type= " t e x t / c s s " rel= " s t y l e s h e e t " href= " m e n u w e b . c s s " / >
< / head >
}
set console " "
set upload_filename / ram/ upload
append buffer {
< body style= " m a r g i n : 0 p x ; " >
< div style= " w i d t h : 9 7 4 p x ; h e i g h t : 8 5 p x ; " >
< div style= " f l o a t : l e f t ; p o s i t i o n : r e l a t i v e ; l e f t : 3 2 p x ; w i d t h : 4 7 8 p x ; " >
< a href= " / " >
OpenOCD
< / a >
< / div >
< div style= " f l o a t : l e f t ; p o s i t i o n : r e l a t i v e ; h e i g h t : 2 6 p x ; w i d t h : 2 7 8 p x ; l e f t : 1 2 2 p x ; b a c k g r o u n d - i m a g e : u r l ( ' m e n u _ c u t s / t o p _ r i g h t . p n g ' ) ; " >
< div style= " p o s i t i o n : r e l a t i v e ; l e f t : 1 5 p x ; t o p : 4 p x ; " class= " t e x t l i g h t " >
}
append buffer [ capture version]
append buffer {
< / div >
< / div >
< / div >
< table style= " p a d d i n g : 0 p x ; b o r d e r - c o l l a p s e : c o l l a p s e ; " >
< tr >
< td style= " w i d t h : 3 3 p x ; " >
< div style= " w i d t h : 2 0 p x ; h e i g h t : 5 1 0 p x ; " >
& nbsp ;
< / div >
< / td >
< td style= " v e r t i c a l - a l i g n : t o p ; h e i g h t : 1 0 0 % ; w i d t h : 1 4 0 p x ; p a d d i n g : 0 p x ; " >
< table style= " p a d d i n g : 0 p x ; b o r d e r - c o l l a p s e : c o l l a p s e ; h e i g h t : 1 0 0 % ; w i d t h : 1 4 0 p x ; " >
< tr style= " h e i g h t : 5 9 p x ; " >
< td / >
< / tr >
< tr >
< td style= " w i d t h : 1 4 0 p x ; h e i g h t : 3 8 p x ; b a c k g r o u n d - i m a g e : u r l ( ' m e n u _ c u t s / v _ t a b . p n g ' ) ; b a c k g r o u n d - r e p e a t : n o - r e p e a t ; " >
< div style= " p o s i t i o n : r e l a t i v e ; l e f t : 1 0 p x ; t o p : 1 0 p x ; f o n t - w e i g h t : b o l d ; " >
< a href= " f l a s h i n f o . t c l " style= " " > Info< / a>
< / div >
< / td >
< / tr >
< tr >
< td style= " w i d t h : 1 4 0 p x ; h e i g h t : 3 8 p x ; b a c k g r o u n d - i m a g e : u r l ( ' m e n u _ c u t s / v _ t a b . p n g ' ) ; b a c k g r o u n d - r e p e a t : n o - r e p e a t ; " >
< div style= " p o s i t i o n : r e l a t i v e ; l e f t : 1 0 p x ; t o p : 1 0 p x ; f o n t - w e i g h t : b o l d ; " >
< a href= " e r a s e . t c l " style= " " > Erase< / a>
< / div >
< / td >
< / tr >
< tr >
< td style= " w i d t h : 1 4 0 p x ; h e i g h t : 3 8 p x ; b a c k g r o u n d - i m a g e : u r l ( ' m e n u _ c u t s / v _ t a b . p n g ' ) ; b a c k g r o u n d - r e p e a t : n o - r e p e a t ; " >
< div style= " p o s i t i o n : r e l a t i v e ; l e f t : 1 0 p x ; t o p : 1 0 p x ; f o n t - w e i g h t : b o l d ; " >
< a href= " f l a s h . t c l " style= " " > Program / Verify< / a>
< / div >
< / td >
< / tr >
< tr >
< td style= " w i d t h : 1 4 0 p x ; h e i g h t : 3 8 p x ; b a c k g r o u n d - i m a g e : u r l ( ' m e n u _ c u t s / v _ t a b _ s e l e c t e d . p n g ' ) ; b a c k g r o u n d - r e p e a t : n o - r e p e a t ; " >
< div style= " p o s i t i o n : r e l a t i v e ; l e f t : 1 0 p x ; t o p : 1 0 p x ; f o n t - w e i g h t : b o l d ; " >
< a href= " p r o d u c t i o n . t c l " style= " f o n t - w e i g h t : b o l d ; " > Production< / a>
< / div >
< / td >
< / tr >
< tr >
< td style= " w i d t h : 1 4 0 p x ; h e i g h t : 3 5 p x ; b a c k g r o u n d - i m a g e : u r l ( ' m e n u _ c u t s / v _ 1 . p n g ' ) " / >
< / tr >
< tr >
< td style= " w i d t h : 1 4 0 p x ; b a c k g r o u n d - i m a g e : u r l ( ' m e n u _ c u t s / v _ 2 _ t i l e . p n g ' ) " / >
< / tr >
< tr >
< td style= " w i d t h : 1 4 0 p x ; h e i g h t : 1 4 0 p x ; b a c k g r o u n d - i m a g e : u r l ( ' m e n u _ c u t s / v _ 3 . p n g ' ) " / >
< / tr >
< / table >
< / td >
< td style= " v e r t i c a l - a l i g n : t o p ; p a d d i n g : 0 p x ; h e i g h t : 1 0 0 % " >
< table style= " p a d d i n g : 0 p x ; b o r d e r - c o l l a p s e : c o l l a p s e ; h e i g h t : 1 0 0 % ; " >
< tr >
< td >
< table style= " p a d d i n g : 0 p x ; b o r d e r - c o l l a p s e : c o l l a p s e ; " >
< tr >
< td style= " w i d t h : 1 0 3 p x ; h e i g h t : 2 9 p x ; b a c k g r o u n d - i m a g e : u r l ( ' m e n u _ c u t s / h _ t a b 1 . p n g ' ) ; b a c k g r o u n d - r e p e a t : n o - r e p e a t ; " >
< div style= " p o s i t i o n : r e l a t i v e ; t o p : 7 p x ; f o n t - w e i g h t : b o l d ; t e x t - a l i g n : c e n t e r ; w i d t h : 1 0 0 p x ; " >
< a href= " i n d e x . t c l " > Config Target< / a>
< / div >
< / td >
< td style= " w i d t h : 1 0 3 p x ; h e i g h t : 2 9 p x ; b a c k g r o u n d - i m a g e : u r l ( ' m e n u _ c u t s / h _ t a b 1 _ s e l e c t e d . p n g ' ) ; b a c k g r o u n d - r e p e a t : n o - r e p e a t ; " >
< div style= " p o s i t i o n : r e l a t i v e ; t o p : 7 p x ; f o n t - w e i g h t : b o l d ; t e x t - a l i g n : c e n t e r ; w i d t h : 1 0 0 p x ; " >
< a href= " f l a s h i n f o . t c l " style= " f o n t - w e i g h t : b o l d ; " > Flash< / a>
< / div >
< / td >
< td style= " w i d t h : 1 0 3 p x ; h e i g h t : 2 9 p x ; b a c k g r o u n d - i m a g e : u r l ( ' m e n u _ c u t s / h _ t a b 1 . p n g ' ) ; b a c k g r o u n d - r e p e a t : n o - r e p e a t ; " >
< div style= " p o s i t i o n : r e l a t i v e ; t o p : 7 p x ; f o n t - w e i g h t : b o l d ; t e x t - a l i g n : c e n t e r ; w i d t h : 1 0 0 p x ; " >
< a href= " b r o w s e m e m . t c l " > Memory< / a>
< / div >
< / td >
< td style= " w i d t h : 1 0 3 p x ; h e i g h t : 2 9 p x ; b a c k g r o u n d - i m a g e : u r l ( ' m e n u _ c u t s / h _ t a b 1 . p n g ' ) ; b a c k g r o u n d - r e p e a t : n o - r e p e a t ; " >
< div style= " p o s i t i o n : r e l a t i v e ; t o p : 7 p x ; f o n t - w e i g h t : b o l d ; t e x t - a l i g n : c e n t e r ; w i d t h : 1 0 0 p x ; " >
< a href= " o p e n o c d . t c l " > OpenOCD< / a>
< / div >
< / td >
< / tr >
< / table >
< / td >
< / tr >
< tr >
< td style= " h e i g h t : 3 0 p x ; w i d t h : 5 3 5 p x ; b a c k g r o u n d - i m a g e : u r l ( ' m e n u _ c u t s / c e n t e r _ t o p . p n g ' ) ; b a c k g r o u n d - r e p e a t : n o - r e p e a t ; b a c k g r o u n d - p o s i t i o n : t o p r i g h t ; " colspan= " 6 " >
< div style= " w i d t h : 5 0 0 p x ; b a c k g r o u n d - c o l o r : # f f f f f f ; h e i g h t : 1 0 0 % ; " >
& nbsp ;
< / div >
< / td >
< / tr >
< tr >
< td style= " b a c k g r o u n d - c o l o r : # f f f f f f ; t e x t - i n d e n t : 3 0 p x ; h e i g h t : 4 0 p x ; " colspan= " 6 " >
< H1 > Production< / H1>
< / td >
< / tr >
< tr style= " h e i g h t : 1 0 0 % ; " >
< td style= " b a c k g r o u n d - c o l o r : # f f f f f f ; p a d d i n g - l e f t : 3 0 p x ; p a d d i n g - r i g h t : 3 0 p x ; w i d t h = 5 3 5 p x ; h e i g h t : 1 0 0 % ; " colspan= " 6 " >
}
set form_action [ formfetch form_action]
set form_serialnumber [ formfetch form_serialnumber]
append buffer [ production_info ]
append buffer {
< form enctype= " m u l t i p a r t / f o r m - d a t a " action= " p r o d u c t i o n . t c l " method= " p o s t " >
< code style= " w h i t e - s p a c e : n o w r a p ; " >
}
if { [ string compare $form_action " U p l o a d f i r m w a r e " ] == 0 } {
set wrotedata [ catch { writeform form_filecontent $upload_filename } result]
append buffer [ encode $result ]
if { $wrotedata == 0 } {
append buffer " < b r > R u n n i n g p r o d u c t i o n p r o c e d u r e < p > "
append buffer " < b r > R e s e t a n d i n i t : < b r > "
append console [ encode [ capture_catch { catch " p r o d u c t i o n $ u p l o a d _ f i l e n a m e $ f o r m _ s e r i a l n u m b e r " } ] ]
}
}
if { [ string compare $form_action " T e s t " ] == 0 } {
append buffer " < b r > R u n n i n g p r o d u c t i o n t e s t . O u t p u t f r o m f i r s t 1 0 s e c o n d s p r i n t e d b e l o w . < p > "
append console [ encode [ capture_catch { catch production_test} ] ]
}
if { [ string compare $form_action " P o w e r o n " ] == 0 } {
append console [ encode [ capture_catch " p o w e r o n " ] ]
}
if { [ string compare $form_action " P o w e r o f f " ] == 0 } {
append console [ encode [ capture_catch " p o w e r o f f " ] ]
}
append buffer {
< / code >
}
append buffer { < p class= " f o r m t e x t " > Firmware file( raw binary) < input type= " f i l e " name= " f o r m _ f i l e c o n t e n t " > < p> }
append buffer { < p class= " f o r m t e x t " > Serial number < input type= " t e x t " name= " f o r m _ s e r i a l n u m b e r " > < p> }
append buffer {
< table >
< tr > < td style= " h e i g h t : 1 5 p x ; w i d t h : 5 3 5 p x ; " > & nbsp< / td> < / tr>
< tr > < td style= " h e i g h t : 1 p x ; w i d t h : 5 3 5 p x ; b a c k g r o u n d - c o l o r : # a 2 c 5 d 1 ; " > < / td> < / tr>
< tr > < td style= " h e i g h t : 1 5 p x ; w i d t h : 5 3 5 p x ; " > & nbsp< / td> < / tr>
< / table >
< table > < tr>
< td > < input type= " s u b m i t " name= " f o r m _ a c t i o n " value= " U p l o a d f i r m w a r e " > < / td>
< td class= " b u t t o n s p a c e s m a l l " > & nbsp< / td> < td> < input type= " s u b m i t " name= " f o r m _ a c t i o n " value= " T e s t " > < / td>
< td class= " b u t t o n s p a c e s m a l l " > & nbsp< / td> < td> < input type= " s u b m i t " name= " f o r m _ a c t i o n " value= " P o w e r o n " > < / td>
< td class= " b u t t o n s p a c e s m a l l " > & nbsp< / td> < td> < input type= " s u b m i t " name= " f o r m _ a c t i o n " value= " P o w e r o f f " >
< / tr > < / table>
< / form >
< / td >
< / tr >
}
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 {
< tr style= " h e i g h t : 1 0 0 % ; " >
< td style= " h e i g h t : 1 0 0 % ; b a c k g r o u n d - c o l o r : r e d ; " colspan= " 6 " >
< table style= " p a d d i n g : 0 p x ; b o r d e r - c o l l a p s e : c o l l a p s e ; b a c k g r o u n d - c o l o r : # f f f f f f ; w i d t h : 1 0 0 % " class= " t e x t g r a y " >
< td style= " w i d t h : 2 5 p x ; " > & nbsp; < / td >
}
if { $show_details == 1 } {
append buffer <
append buffer { td style= " b a c k g r o u n d - c o l o r : # d d d d d d ; p a d d i n g - l e f t : 5 p x ; p a d d i n g - r i g h t : 5 p x ; p a d d i n g - t o p : 3 p x ; p a d d i n g - b o t t o m : 3 p x ; " }
append buffer >
} else {
append buffer <
append buffer { td style= " b a c k g r o u n d - i m a g e : u r l ( ' m e n u _ c u t s / h _ t a b _ f r e e . p n g ' ) ; w i d t h : 1 1 0 p x ; h e i g h t : 2 9 p x ; b a c k g r o u n d - r e p e a t : n o - r e p e a t ; b a c k g r o u n d - p o s i t i o n : t o p l e f t ; " }
append buffer >
}
append buffer {
< a class= " o p e n o c d " href= " p r o d u c t i o n . t c l ? t o g g l e _ d e t a i l s = 1 " >
}
if { $show_details == 1 } {
append buffer " H i d e d e t a i l s "
append buffer < br/ >
} else {
append buffer { < div style= " p o s i t i o n : r e l a t i v e ; t o p : 7 p x ; t e x t - a l i g n : c e n t e r ; " > }
append buffer " S h o w d e t a i l s "
append buffer { < / div > }
}
append buffer {
< / a >
}
if { $show_details == 1 } {
append buffer $console
}
append buffer { < / td > }
if { $show_details != 1 } {
append buffer { < td > & nbsp; < / td > }
}
append buffer {
< td style= " w i d t h : 2 5 p x ; " > & nbsp; < / td >
< / table >
< / td >
< / tr >
}
}
append buffer {
< tr >
< td style= " h e i g h t : 3 0 p x ; b a c k g r o u n d - i m a g e : u r l ( ' m e n u _ c u t s / c e n t e r _ b o t t o m . p n g ' ) ; b a c k g r o u n d - r e p e a t : n o - r e p e a t ; b a c k g r o u n d - p o s i t i o n : t o p r i g h t ; " colspan= " 6 " >
< div style= " w i d t h : 5 0 0 p x ; b a c k g r o u n d - c o l o r : # f f f f f f ; h e i g h t : 1 0 0 % ; " >
& nbsp ;
< / div >
< / td >
< / tr >
< / table >
< / td >
< td style= " w i d t h : 6 p x ; " / >
< td style= " w i d t h : 2 4 5 p x ; h e i g h t : 1 0 0 % " >
< table style= " p a d d i n g : 0 p x ; b o r d e r - c o l l a p s e : c o l l a p s e ; h e i g h t : 1 0 0 % ; " >
< tr >
< td style= " w i d t h : 1 0 3 p x ; h e i g h t : 2 9 p x ; b a c k g r o u n d - i m a g e : u r l ( ' m e n u _ c u t s / h _ t a b 2 _ s e l e c t e d . p n g ' ) ; b a c k g r o u n d - r e p e a t : n o - r e p e a t ; " >
< div style= " p o s i t i o n : r e l a t i v e ; t o p : 7 p x ; ; f o n t - w e i g h t : b o l d ; t e x t - a l i g n : c e n t e r ; w i d t h : 1 0 0 p x ; " class= " t e x t g r a y " >
Documentation
< / div >
< / td >
< td width= " 4 0 p x " >
& nbsp ;
< / td >
< td / >
< / tr >
< tr >
< td style= " h e i g h t : 1 0 p x ; w i d t h : 2 4 5 p x ; b a c k g r o u n d - i m a g e : u r l ( ' m e n u _ c u t s / r i g h t _ t o p _ s m a l l . p n g ' ) ; " colspan= " 3 " / >
< / tr >
< tr >
< td style= " b a c k g r o u n d - c o l o r : # d 8 d 7 d 7 ; w i d t h : 2 4 5 p x ; p a d d i n g - l e f t : 1 0 p x ; p a d d i n g - b u t t o m : 1 0 p x ; l i n e - h e i g h t : 1 7 p x ; " colspan= " 3 " >
< a target= " _ b l a n k " href= " h t t p : / / o p e n o c d . b e r l i o s . d e / d o c / o p e n o c d . p d f " > OpenOCD Manual< / a>
< br / >
< / td >
< / tr >
< tr >
< td style= " b a c k g r o u n d - c o l o r : # d 8 d 7 d 7 ; h e i g h t : 1 5 p x ; " colspan= " 3 " / >
< / tr >
< tr >
< td colspan= " 3 " >
< table style= " p a d d i n g : 0 p x ; b o r d e r - c o l l a p s e : c o l l a p s e ; " >
< td style= " b a c k g r o u n d - c o l o r : # d 8 d 7 d 7 ; w i d t h : 1 0 p x ; h e i g h t : 1 p x " / >
< td style= " b a c k g r o u n d - c o l o r : # 9 9 9 9 9 9 ; w i d t h : 2 2 5 p x ; h e i g h t : 1 p x ; " / >
< td style= " b a c k g r o u n d - c o l o r : # d 8 d 7 d 7 ; w i d t h : 1 0 p x ; h e i g h t : 1 p x " / >
< / table >
< / td >
< / tr >
< tr >
< td style= " b a c k g r o u n d - c o l o r : # d 8 d 7 d 7 ; h e i g h t : 1 5 p x ; " colspan= " 3 " / >
< / tr >
< tr style= " h e i g h t : 1 0 0 % ; " >
< td style= " h e i g h t : 1 0 0 % ; b a c k g r o u n d - c o l o r : # d 8 d 7 d 7 ; p a d d i n g - l e f t : 1 0 p x ; p a d d i n g - r i g h t : 1 0 p x ; " colspan= " 3 " class= " t e x t g r a y " >
The target script can implement the " p r o d u c t i o n " , " p r o d u c t i o n _ i n f o " and " p r o d u c t i o n _ t e s t " tcl proc' s. These procedures
are used on this page. There are default implementations that do nothing.
< p > < b> Upload firmware< / b> - Power cycle target, reset target and program raw binary file to flash bank 0 , offset 0 and verify flash programming. Leave target powered on.< / p>
< p > < b> Test< / b> - Power up target, run 10 second target test. Output is provided via the DCC output channel. < / p>
< p > < b> Power on< / b> - Power on target.< / p>
< p > < b> Power off< / b> - Power off target.< / p>
< p > < b> Serial number< / b> - A target script can use this string in the production procedure. Type " h e l p p r o d u c t i o n " for more info.< / p>
< / td >
< / tr >
< tr >
< td style= " h e i g h t : 3 0 p x ; b a c k g r o u n d - i m a g e : u r l ( ' m e n u _ c u t s / r i g h t _ b o t t o m . p n g ' ) ; " colspan= " 3 " >
& nbsp ;
< / td >
< / tr >
< / table >
< / td >
< / tr >
< / table >
< / body >
< / html >
}
start_chunked " h t m l "
write_chunked $buffer
end_chunked