You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

377 lines
10 KiB

  1. # converted to .tcl by html2tcl.tcl
  2. set buffer ""
  3. append buffer {
  4. <html xmlns="http://www.w3.org/TR/REC-html40">
  5. <head>
  6. <title>OpenOCD debugger</title>
  7. <meta charset="utf-8" content="text/html" http-equiv="Content-Type"/>
  8. <link type="text/css" rel="stylesheet" href="menuweb.css"/>
  9. </head>
  10. }
  11. set console ""
  12. set upload_filename /ram/upload
  13. append buffer {
  14. <body style="margin:0px;">
  15. <div style="width:974px;height:85px;">
  16. <div style="float:left;position:relative;left:32px;width:478px;">
  17. <a href="/">
  18. OpenOCD
  19. </a>
  20. </div>
  21. <div style="float:left;position:relative;height:26px; width:278px;left:122px;background-image:url('menu_cuts/top_right.png');">
  22. <div style="position:relative;left:15px;top:4px;" class="textlight">
  23. }
  24. append buffer [capture version]
  25. append buffer {
  26. </div>
  27. </div>
  28. </div>
  29. <table style="padding:0px;border-collapse:collapse;">
  30. <tr>
  31. <td style="width:33px;">
  32. <div style="width:20px;height:510px;">
  33. &nbsp;
  34. </div>
  35. </td>
  36. <td style="vertical-align:top;height:100%;width:140px;padding:0px;">
  37. <table style="padding:0px;border-collapse:collapse;height:100%;width:140px;">
  38. <tr style="height:59px;">
  39. <td/>
  40. </tr>
  41. <tr>
  42. <td style="width:140px;height:38px;background-image:url('menu_cuts/v_tab_selected.png');background-repeat: no-repeat;">
  43. <div style="position:relative;left:10px;top:10px;font-weight:bold;">
  44. <a href="index.tcl" style="font-weight: bold;">Target Status</a>
  45. </div>
  46. </td>
  47. </tr>
  48. <tr>
  49. <td style="width:140px;height:35px;background-image:url('menu_cuts/v_1.png')"/>
  50. </tr>
  51. <tr>
  52. <td style="width:140px;background-image:url('menu_cuts/v_2_tile.png')"/>
  53. </tr>
  54. <tr>
  55. <td style="width:140px;height:140px;background-image:url('menu_cuts/v_3.png')"/>
  56. </tr>
  57. </table>
  58. </td>
  59. <td style="vertical-align:top;padding:0px;height:100%">
  60. <table style="padding:0px;border-collapse:collapse;height:100%;">
  61. <tr>
  62. <td>
  63. <table style="padding:0px;border-collapse:collapse;">
  64. <tr>
  65. <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1_selected.png');background-repeat: no-repeat;">
  66. <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
  67. <a href="index.tcl" style="font-weight: bold;">Config Target</a>
  68. </div>
  69. </td>
  70. <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
  71. <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
  72. <a href="flashinfo.tcl">Flash</a>
  73. </div>
  74. </td>
  75. <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
  76. <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
  77. <a href="browsemem.tcl">Memory</a>
  78. </div>
  79. </td>
  80. <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
  81. <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
  82. <a href="openocd.tcl">OpenOCD</a>
  83. </div>
  84. </td>
  85. </tr>
  86. </table>
  87. </td>
  88. </tr>
  89. <tr>
  90. <td style="height:30px;width:535px;background-image:url('menu_cuts/center_top.png');background-repeat: no-repeat;background-position:top right;" colspan="6">
  91. <div style="width:500px;background-color:#ffffff;height:100%;">
  92. &nbsp;
  93. </div>
  94. </td>
  95. </tr>
  96. <tr>
  97. <td style="background-color:#ffffff;text-indent:30px;height:40px;" colspan="6">
  98. <H1>OpenOCD debugger</H1>
  99. </td>
  100. </tr>
  101. <tr style="height:100%;">
  102. <td style="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;" colspan="6">
  103. <table>
  104. <tr><td style="height:10px;width:535px;">&nbsp</td></tr>
  105. <tr><td style="height:1px;width:535px;background-color:#a2c5d1;"></td></tr>
  106. <tr><td style="height:5px;width:535px;">&nbsp</td></tr>
  107. </table>
  108. <H1>Target Status</H1>
  109. <table>
  110. <tr>
  111. <td class="fontbigger">
  112. }
  113. set form_address [formfetch form_address]
  114. set form_action [formfetch form_action]
  115. if {[string compare $form_action "Halt"]==0} {
  116. append console [encode [capture_catch "halt"]]
  117. }
  118. if {[string compare $form_action "Resume"]==0} {
  119. append console [encode [capture_catch "resume"]]
  120. }
  121. if {[string compare $form_action "Reset and run"]==0} {
  122. append console [encode [capture_catch "reset run"]]
  123. }
  124. if {[string compare $form_action "Power on"]==0} {
  125. append console [encode [capture_catch "power on"]]
  126. }
  127. if {[string compare $form_action "Power off"]==0} {
  128. append console [encode [capture_catch "power off"]]
  129. }
  130. append buffer {
  131. }
  132. append console [encode [capture_catch poll]]
  133. append buffer {
  134. </td>
  135. </tr>
  136. </table>
  137. <form action="index.tcl" method="post">
  138. <table><tr>
  139. <td><input type="submit" name="form_action" value="Reset and run"></td>
  140. <td class="buttonspacesmall"></td><td><input type="submit" name="form_action" value="Halt"></td>
  141. <td class="buttonspacesmall"></td><td><input type="submit" name="form_action" value="Resume"></td>
  142. <td style="width:50px;"></td><td><input type="submit" name="form_action" value="Power on"></td>
  143. <td class="buttonspacesmall"></td><td><input type="submit" name="form_action" value="Power off"></td>
  144. </tr></table>
  145. <br>
  146. <br>
  147. <p>
  148. </form>
  149. </td>
  150. </tr>
  151. }
  152. set toggle_details [formfetch toggle_details]
  153. if {[string length $toggle_details]==0} {
  154. set toggle_details 0
  155. }
  156. set show_details [load_var show_details]
  157. if {[string length $show_details]==0} {
  158. set show_details 0
  159. }
  160. if {$toggle_details==1} {
  161. set show_details [expr 1-$show_details]
  162. save_var show_details $show_details
  163. }
  164. if {[string length $console]!=0} {
  165. append buffer {
  166. <tr style="height:100%;">
  167. <td style="height:100%;background-color:red;" colspan="6">
  168. <table style="padding:0px;border-collapse:collapse;background-color:#ffffff;width:100%" class="textgray">
  169. <td style="width:25px;">&nbsp;</td>
  170. }
  171. if {$show_details==1} {
  172. append buffer <
  173. append buffer {td style="background-color:#dddddd;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;"}
  174. append buffer >
  175. } else {
  176. append buffer <
  177. 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;"}
  178. append buffer >
  179. }
  180. append buffer {
  181. <a class="openocd" href="index.tcl?toggle_details=1">
  182. }
  183. if {$show_details==1} {
  184. append buffer "Hide details"
  185. append buffer <br/>
  186. } else {
  187. append buffer {<div style="position:relative;top:7px;text-align:center;">}
  188. append buffer "Show details"
  189. append buffer {</div>}
  190. }
  191. append buffer {
  192. </a>
  193. }
  194. if {$show_details==1} {
  195. append buffer $console
  196. }
  197. append buffer {</td>}
  198. if {$show_details!=1} {
  199. append buffer {<td>&nbsp;</td>}
  200. }
  201. append buffer {
  202. <td style="width:25px;">&nbsp;</td>
  203. </table>
  204. </td>
  205. </tr>
  206. }
  207. }
  208. append buffer {
  209. <tr>
  210. <td style="height:30px;background-image:url('menu_cuts/center_bottom.png');background-repeat: no-repeat;background-position:top right;" colspan="6">
  211. <div style="width:500px;background-color:#ffffff;height:100%;">
  212. &nbsp;
  213. </div>
  214. </td>
  215. </tr>
  216. </table>
  217. </td>
  218. <td style="width:6px;"/>
  219. <td style="width:245px;height:100%">
  220. <table style="padding:0px;border-collapse:collapse;height:100%;">
  221. <tr>
  222. <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab2_selected.png');background-repeat: no-repeat;">
  223. <div style="position:relative;top:7px;;font-weight:bold;text-align:center;width:100px;" class="textgray">
  224. Documentation
  225. </div>
  226. </td>
  227. <td width="40px">
  228. &nbsp;
  229. </td>
  230. <td/>
  231. </tr>
  232. <tr>
  233. <td style="height:10px;width:245px;background-image:url('menu_cuts/right_top_small.png');" colspan="3"/>
  234. </tr>
  235. <tr>
  236. <td style="background-color:#d8d7d7;width:245px;padding-left:10px;padding-buttom:10px;line-height:17px;" colspan="3">
  237. <a target="_blank" href="http://openocd.berlios.de/doc/openocd.pdf">OpenOCD Manual</a>
  238. <br/>
  239. </td>
  240. </tr>
  241. <tr>
  242. <td style="background-color:#d8d7d7;height:15px;" colspan="3"/>
  243. </tr>
  244. <tr>
  245. <td colspan="3">
  246. <table style="padding:0px;border-collapse:collapse;">
  247. <td style="background-color:#d8d7d7;width:10px;height:1px"/>
  248. <td style="background-color:#999999;width:225px; height:1px;"/>
  249. <td style="background-color:#d8d7d7;width:10px;height:1px"/>
  250. </table>
  251. </td>
  252. </tr>
  253. <tr>
  254. <td style="background-color:#d8d7d7;height:15px;" colspan="3"/>
  255. </tr>
  256. <tr style="height:100%;">
  257. <td style="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;" colspan="3" class="textgray">
  258. <p>Target status shows that status of the connected target. </p>
  259. <p><b>Current target</b> - selected target configuration. <br>
  260. <p><b>Startup</b> - whether or not the target script ran to completion. Note
  261. that even if the target is disconnected, powered down or unresponsive, the
  262. startup script will still run to completion. Startup - OK does not mean
  263. that the target is fully operational, simply that the configuration script
  264. did not contain syntax errors for instance.
  265. See log for details. <br>
  266. <p><b>Target power</b> - Detects power on target. <br>
  267. If the JTAG cable is not connected, or the target has no power, then no target power will be detected.</p>
  268. <p>Type "help power" in telnet for command to control power relay.</p>
  269. </td>
  270. </tr>
  271. <tr>
  272. <td style="height:30px;background-image:url('menu_cuts/right_bottom.png');" colspan="3">
  273. &nbsp;
  274. </td>
  275. </tr>
  276. </table>
  277. </td>
  278. </tr>
  279. </table>
  280. </body>
  281. </html>
  282. }
  283. start_chunked "html"
  284. write_chunked $buffer
  285. end_chunked