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.
 
 
 
 
 
 

383 lines
9.9 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="flashinfo.tcl" style="font-weight: bold;">Info</a>
  45. </div>
  46. </td>
  47. </tr>
  48. <tr>
  49. <td style="width:140px;height:38px;background-image:url('menu_cuts/v_tab.png');background-repeat: no-repeat;">
  50. <div style="position:relative;left:10px;top:10px;font-weight:bold;">
  51. <a href="erase.tcl" style="">Erase</a>
  52. </div>
  53. </td>
  54. </tr>
  55. <tr>
  56. <td style="width:140px;height:38px;background-image:url('menu_cuts/v_tab.png');background-repeat: no-repeat;">
  57. <div style="position:relative;left:10px;top:10px;font-weight:bold;">
  58. <a href="flash.tcl" style="">Program / Verify</a>
  59. </div>
  60. </td>
  61. </tr>
  62. <tr>
  63. <td style="width:140px;height:38px;background-image:url('menu_cuts/v_tab.png');background-repeat: no-repeat;">
  64. <div style="position:relative;left:10px;top:10px;font-weight:bold;">
  65. <a href="production.tcl" style="">Production</a>
  66. </div>
  67. </td>
  68. </tr>
  69. <tr>
  70. <td style="width:140px;height:35px;background-image:url('menu_cuts/v_1.png')"/>
  71. </tr>
  72. <tr>
  73. <td style="width:140px;background-image:url('menu_cuts/v_2_tile.png')"/>
  74. </tr>
  75. <tr>
  76. <td style="width:140px;height:140px;background-image:url('menu_cuts/v_3.png')"/>
  77. </tr>
  78. </table>
  79. </td>
  80. <td style="vertical-align:top;padding:0px;height:100%">
  81. <table style="padding:0px;border-collapse:collapse;height:100%;">
  82. <tr>
  83. <td>
  84. <table style="padding:0px;border-collapse:collapse;">
  85. <tr>
  86. <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
  87. <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
  88. <a href="index.tcl">Config Target</a>
  89. </div>
  90. </td>
  91. <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1_selected.png');background-repeat: no-repeat;">
  92. <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
  93. <a href="flashinfo.tcl" style="font-weight: bold;">Flash</a>
  94. </div>
  95. </td>
  96. <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
  97. <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
  98. <a href="browsemem.tcl">Memory</a>
  99. </div>
  100. </td>
  101. <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
  102. <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
  103. <a href="openocd.tcl">OpenOCD</a>
  104. </div>
  105. </td>
  106. </tr>
  107. </table>
  108. </td>
  109. </tr>
  110. <tr>
  111. <td style="height:30px;width:535px;background-image:url('menu_cuts/center_top.png');background-repeat: no-repeat;background-position:top right;" colspan="6">
  112. <div style="width:500px;background-color:#ffffff;height:100%;">
  113. &nbsp;
  114. </div>
  115. </td>
  116. </tr>
  117. <tr>
  118. <td style="background-color:#ffffff;text-indent:30px;height:40px;" colspan="6">
  119. <H1>Flash Information</H1>
  120. </td>
  121. </tr>
  122. <tr style="height:100%;">
  123. <td style="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;" colspan="6">
  124. <div style="font-size:14px;">Configured flash banks:</div>
  125. <p>
  126. <code style="white-space: nowrap;">
  127. }
  128. set flash_return [ocd_flash_banks]
  129. if {[llength $flash_return]!=0} {
  130. append buffer [encode [flash banks]]
  131. set form_action [formfetch form_action]
  132. if {[string compare $form_action "Reset CPU and probe flash"]==0} {
  133. append console [encode [capture_catch "reset init"]]
  134. append buffer [encode [capture_catch "flash probe 0"]]
  135. append buffer [encode [capture_catch "flash info 0"]]
  136. }
  137. } else {
  138. append buffer "No flash bank configured."
  139. }
  140. append buffer {
  141. <p>
  142. <form action="flashinfo.tcl" method="post">
  143. <input type="submit" name="form_action" value="Reset CPU and probe flash">
  144. </form>
  145. }
  146. foreach a [ocd_flash_banks] {
  147. append buffer "Flash bank at [format "0x%08x size 0x%08x" $a(base) $a(size)]: "
  148. append buffer {
  149. <form action="downloadmem.tcl" method="post">
  150. <input type="hidden" name="form_address" value="}
  151. append buffer [format "0x%08x" $a(base)]
  152. append buffer {">
  153. <input type="hidden" name="form_length" value="}
  154. append buffer [format "0x%08x" $a(size)]
  155. append buffer {">
  156. <input type="submit" value="Download" name="form_action">
  157. <br>
  158. </form>
  159. }
  160. }
  161. append buffer {
  162. </code>
  163. </td>
  164. </tr>
  165. }
  166. set toggle_details [formfetch toggle_details]
  167. if {[string length $toggle_details]==0} {
  168. set toggle_details 0
  169. }
  170. set show_details [load_var show_details]
  171. if {[string length $show_details]==0} {
  172. set show_details 0
  173. }
  174. if {$toggle_details==1} {
  175. set show_details [expr 1-$show_details]
  176. save_var show_details $show_details
  177. }
  178. if {[string length $console]!=0} {
  179. append buffer {
  180. <tr style="height:100%;">
  181. <td style="height:100%;background-color:red;" colspan="6">
  182. <table style="padding:0px;border-collapse:collapse;background-color:#ffffff;width:100%" class="textgray">
  183. <td style="width:25px;">&nbsp;</td>
  184. }
  185. if {$show_details==1} {
  186. append buffer <
  187. append buffer {td style="background-color:#dddddd;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;"}
  188. append buffer >
  189. } else {
  190. append buffer <
  191. 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;"}
  192. append buffer >
  193. }
  194. append buffer {
  195. <a class="openocd" href="flashinfo.tcl?toggle_details=1">
  196. }
  197. if {$show_details==1} {
  198. append buffer "Hide details"
  199. append buffer <br/>
  200. } else {
  201. append buffer {<div style="position:relative;top:7px;text-align:center;">}
  202. append buffer "Show details"
  203. append buffer {</div>}
  204. }
  205. append buffer {
  206. </a>
  207. }
  208. if {$show_details==1} {
  209. append buffer $console
  210. }
  211. append buffer {</td>}
  212. if {$show_details!=1} {
  213. append buffer {<td>&nbsp;</td>}
  214. }
  215. append buffer {
  216. <td style="width:25px;">&nbsp;</td>
  217. </table>
  218. </td>
  219. </tr>
  220. }
  221. }
  222. append buffer {
  223. <tr>
  224. <td style="height:30px;background-image:url('menu_cuts/center_bottom.png');background-repeat: no-repeat;background-position:top right;" colspan="6">
  225. <div style="width:500px;background-color:#ffffff;height:100%;">
  226. &nbsp;
  227. </div>
  228. </td>
  229. </tr>
  230. </table>
  231. </td>
  232. <td style="width:6px;"/>
  233. <td style="width:245px;height:100%">
  234. <table style="padding:0px;border-collapse:collapse;height:100%;">
  235. <tr>
  236. <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab2_selected.png');background-repeat: no-repeat;">
  237. <div style="position:relative;top:7px;;font-weight:bold;text-align:center;width:100px;" class="textgray">
  238. Documentation
  239. </div>
  240. </td>
  241. <td width="40px">
  242. &nbsp;
  243. </td>
  244. <td/>
  245. </tr>
  246. <tr>
  247. <td style="height:10px;width:245px;background-image:url('menu_cuts/right_top_small.png');" colspan="3"/>
  248. </tr>
  249. <tr>
  250. <td style="background-color:#d8d7d7;width:245px;padding-left:10px;padding-buttom:10px;line-height:17px;" colspan="3">
  251. <a target="_blank" href="http://openocd.berlios.de/doc/openocd.pdf">OpenOCD Manual</a>
  252. <br/>
  253. </td>
  254. </tr>
  255. <tr>
  256. <td style="background-color:#d8d7d7;height:15px;" colspan="3"/>
  257. </tr>
  258. <tr>
  259. <td colspan="3">
  260. <table style="padding:0px;border-collapse:collapse;">
  261. <td style="background-color:#d8d7d7;width:10px;height:1px"/>
  262. <td style="background-color:#999999;width:225px; height:1px;"/>
  263. <td style="background-color:#d8d7d7;width:10px;height:1px"/>
  264. </table>
  265. </td>
  266. </tr>
  267. <tr>
  268. <td style="background-color:#d8d7d7;height:15px;" colspan="3"/>
  269. </tr>
  270. <tr style="height:100%;">
  271. <td style="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;" colspan="3" class="textgray">
  272. <p>Here you will find information about the flash chips that you have
  273. in your configuration.<p/>
  274. <p><b>Reset CPU and probe flash</b> - This will reset the CPU and show
  275. you more detailed information about your flash. This includes information about
  276. the different sectors in the flash, and the flash driver used.</p>
  277. </td>
  278. </tr>
  279. <tr>
  280. <td style="height:30px;background-image:url('menu_cuts/right_bottom.png');" colspan="3">
  281. &nbsp;
  282. </td>
  283. </tr>
  284. </table>
  285. </td>
  286. </tr>
  287. </table>
  288. </body>
  289. </html>
  290. }
  291. start_chunked "html"
  292. write_chunked $buffer
  293. end_chunked