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.
 
 
 
 
 
 

563 lines
16 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:35px;background-image:url('menu_cuts/v_1.png')"/>
  43. </tr>
  44. <tr>
  45. <td style="width:140px;background-image:url('menu_cuts/v_2_tile.png')"/>
  46. </tr>
  47. <tr>
  48. <td style="width:140px;height:140px;background-image:url('menu_cuts/v_3.png')"/>
  49. </tr>
  50. </table>
  51. </td>
  52. <td style="vertical-align:top;padding:0px;height:100%">
  53. <table style="padding:0px;border-collapse:collapse;height:100%;">
  54. <tr>
  55. <td>
  56. <table style="padding:0px;border-collapse:collapse;">
  57. <tr>
  58. <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
  59. <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
  60. <a href="index.tcl">Config Target</a>
  61. </div>
  62. </td>
  63. <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
  64. <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
  65. <a href="flashinfo.tcl">Flash</a>
  66. </div>
  67. </td>
  68. <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
  69. <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
  70. <a href="browsemem.tcl">Memory</a>
  71. </div>
  72. </td>
  73. <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
  74. <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
  75. <a href="openocd.tcl">OpenOCD</a>
  76. </div>
  77. </td>
  78. </tr>
  79. </table>
  80. </td>
  81. </tr>
  82. <tr>
  83. <td style="height:30px;width:535px;background-image:url('menu_cuts/center_top.png');background-repeat: no-repeat;background-position:top right;" colspan="6">
  84. <div style="width:500px;background-color:#ffffff;height:100%;">
  85. &nbsp;
  86. </div>
  87. </td>
  88. </tr>
  89. <tr>
  90. <td style="background-color:#ffffff;text-indent:30px;height:40px;" colspan="6">
  91. <H1>Target config quick start guide</H1>
  92. </td>
  93. </tr>
  94. <tr style="height:100%;">
  95. <td style="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;" colspan="6">
  96. A target needs an openocd.cfg file. This config file sets up
  97. the CPU, flash and reset init script. Either ZY1000 ships with an
  98. openocd.cfg file for your target or you need to take an existing
  99. config file and modify it for your needs.
  100. <p>
  101. The reset init script is crucial. It will set up e.g. MMU, chip
  102. select registers, etc. after a reset. The init.cfg (reset init script)
  103. is embedded into the openocd.cfg file in the sampls Zylin provides.
  104. <p>
  105. Writing an openocd.cfg from scratch is a non-trivial exercise, but
  106. fortunally it only has to be done once for a target and afterwards it
  107. rarely if ever needs to be changed.
  108. </td>
  109. </tr>
  110. }
  111. set toggle_details [formfetch toggle_details]
  112. if {[string length $toggle_details]==0} {
  113. set toggle_details 0
  114. }
  115. set show_details [load_var show_details]
  116. if {[string length $show_details]==0} {
  117. set show_details 0
  118. }
  119. if {$toggle_details==1} {
  120. set show_details [expr 1-$show_details]
  121. save_var show_details $show_details
  122. }
  123. if {[string length $console]!=0} {
  124. append buffer {
  125. <tr style="height:100%;">
  126. <td style="height:100%;background-color:red;" colspan="6">
  127. <table style="padding:0px;border-collapse:collapse;background-color:#ffffff;width:100%" class="textgray">
  128. <td style="width:25px;">&nbsp;</td>
  129. }
  130. if {$show_details==1} {
  131. append buffer <
  132. append buffer {td style="background-color:#dddddd;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;"}
  133. append buffer >
  134. } else {
  135. append buffer <
  136. 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;"}
  137. append buffer >
  138. }
  139. append buffer {
  140. <a class="openocd" href="targets.tcl?toggle_details=1">
  141. }
  142. if {$show_details==1} {
  143. append buffer "Hide details"
  144. append buffer <br/>
  145. } else {
  146. append buffer {<div style="position:relative;top:7px;text-align:center;">}
  147. append buffer "Show details"
  148. append buffer {</div>}
  149. }
  150. append buffer {
  151. </a>
  152. }
  153. if {$show_details==1} {
  154. append buffer $console
  155. }
  156. append buffer {</td>}
  157. if {$show_details!=1} {
  158. append buffer {<td>&nbsp;</td>}
  159. }
  160. append buffer {
  161. <td style="width:25px;">&nbsp;</td>
  162. </table>
  163. </td>
  164. </tr>
  165. }
  166. }
  167. append buffer {
  168. <tr>
  169. <td style="height:30px;background-image:url('menu_cuts/center_bottom.png');background-repeat: no-repeat;background-position:top right;" colspan="6">
  170. <div style="width:500px;background-color:#ffffff;height:100%;">
  171. &nbsp;
  172. </div>
  173. </td>
  174. </tr>
  175. </table>
  176. </td>
  177. <td style="width:6px;"/>
  178. <td style="width:245px;height:100%">
  179. <table style="padding:0px;border-collapse:collapse;height:100%;">
  180. <tr>
  181. <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab2_selected.png');background-repeat: no-repeat;">
  182. <div style="position:relative;top:7px;;font-weight:bold;text-align:center;width:100px;" class="textgray">
  183. Documentation
  184. </div>
  185. </td>
  186. <td width="40px">
  187. &nbsp;
  188. </td>
  189. <td/>
  190. </tr>
  191. <tr>
  192. <td style="height:10px;width:245px;background-image:url('menu_cuts/right_top_small.png');" colspan="3"/>
  193. </tr>
  194. <tr>
  195. <td style="background-color:#d8d7d7;width:245px;padding-left:10px;padding-buttom:10px;line-height:17px;" colspan="3">
  196. <a target="_blank" href="http://openocd.berlios.de/doc/openocd.pdf">OpenOCD Manual</a>
  197. <br/>
  198. </td>
  199. </tr>
  200. <tr>
  201. <td style="background-color:#d8d7d7;height:15px;" colspan="3"/>
  202. </tr>
  203. <tr>
  204. <td colspan="3">
  205. <table style="padding:0px;border-collapse:collapse;">
  206. <td style="background-color:#d8d7d7;width:10px;height:1px"/>
  207. <td style="background-color:#999999;width:225px; height:1px;"/>
  208. <td style="background-color:#d8d7d7;width:10px;height:1px"/>
  209. </table>
  210. </td>
  211. </tr>
  212. <tr>
  213. <td style="background-color:#d8d7d7;height:15px;" colspan="3"/>
  214. </tr>
  215. <tr style="height:100%;">
  216. <td style="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;" colspan="3" class="textgray">
  217. Quick start guide on how to configure a target.
  218. </td>
  219. </tr>
  220. <tr>
  221. <td style="height:30px;background-image:url('menu_cuts/right_bottom.png');" colspan="3">
  222. &nbsp;
  223. </td>
  224. </tr>
  225. </table>
  226. </td>
  227. </tr>
  228. </table>
  229. </body>
  230. </html>
  231. <html xmlns="http://www.w3.org/TR/REC-html40">
  232. <head>
  233. <title>OpenOCD debugger</title>
  234. <meta charset="utf-8" content="text/html" http-equiv="Content-Type"/>
  235. <link type="text/css" rel="stylesheet" href="menuweb.css"/>
  236. </head>
  237. }
  238. set console ""
  239. set upload_filename /ram/upload
  240. append buffer {
  241. <body style="margin:0px;">
  242. <div style="width:974px;height:85px;">
  243. <div style="float:left;position:relative;left:32px;width:478px;">
  244. <a href="/">
  245. OpenOCD
  246. </a>
  247. </div>
  248. <div style="float:left;position:relative;height:26px; width:278px;left:122px;background-image:url('menu_cuts/top_right.png');">
  249. <div style="position:relative;left:15px;top:4px;" class="textlight">
  250. }
  251. append buffer [capture version]
  252. append buffer {
  253. </div>
  254. </div>
  255. </div>
  256. <table style="padding:0px;border-collapse:collapse;">
  257. <tr>
  258. <td style="width:33px;">
  259. <div style="width:20px;height:510px;">
  260. &nbsp;
  261. </div>
  262. </td>
  263. <td style="vertical-align:top;height:100%;width:140px;padding:0px;">
  264. <table style="padding:0px;border-collapse:collapse;height:100%;width:140px;">
  265. <tr style="height:59px;">
  266. <td/>
  267. </tr>
  268. <tr>
  269. <td style="width:140px;height:35px;background-image:url('menu_cuts/v_1.png')"/>
  270. </tr>
  271. <tr>
  272. <td style="width:140px;background-image:url('menu_cuts/v_2_tile.png')"/>
  273. </tr>
  274. <tr>
  275. <td style="width:140px;height:140px;background-image:url('menu_cuts/v_3.png')"/>
  276. </tr>
  277. </table>
  278. </td>
  279. <td style="vertical-align:top;padding:0px;height:100%">
  280. <table style="padding:0px;border-collapse:collapse;height:100%;">
  281. <tr>
  282. <td>
  283. <table style="padding:0px;border-collapse:collapse;">
  284. <tr>
  285. <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
  286. <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
  287. <a href="index.tcl">Config Target</a>
  288. </div>
  289. </td>
  290. <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
  291. <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
  292. <a href="flashinfo.tcl">Flash</a>
  293. </div>
  294. </td>
  295. <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
  296. <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
  297. <a href="browsemem.tcl">Memory</a>
  298. </div>
  299. </td>
  300. <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
  301. <div style="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
  302. <a href="openocd.tcl">OpenOCD</a>
  303. </div>
  304. </td>
  305. </tr>
  306. </table>
  307. </td>
  308. </tr>
  309. <tr>
  310. <td style="height:30px;width:535px;background-image:url('menu_cuts/center_top.png');background-repeat: no-repeat;background-position:top right;" colspan="6">
  311. <div style="width:500px;background-color:#ffffff;height:100%;">
  312. &nbsp;
  313. </div>
  314. </td>
  315. </tr>
  316. <tr>
  317. <td style="background-color:#ffffff;text-indent:30px;height:40px;" colspan="6">
  318. <H1>Target config quick start guide</H1>
  319. </td>
  320. </tr>
  321. <tr style="height:100%;">
  322. <td style="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;" colspan="6">
  323. A target needs an openocd.cfg file. This config file sets up
  324. the CPU, flash and reset init script. Either ZY1000 ships with an
  325. openocd.cfg file for your target or you need to take an existing
  326. config file and modify it for your needs.
  327. <p>
  328. The reset init script is crucial. It will set up e.g. MMU, chip
  329. select registers, etc. after a reset. The init.cfg (reset init script)
  330. is embedded into the openocd.cfg file in the sampls Zylin provides.
  331. <p>
  332. Writing an openocd.cfg from scratch is a non-trivial exercise, but
  333. fortunally it only has to be done once for a target and afterwards it
  334. rarely if ever needs to be changed.
  335. </td>
  336. </tr>
  337. }
  338. set toggle_details [formfetch toggle_details]
  339. if {[string length $toggle_details]==0} {
  340. set toggle_details 0
  341. }
  342. set show_details [load_var show_details]
  343. if {[string length $show_details]==0} {
  344. set show_details 0
  345. }
  346. if {$toggle_details==1} {
  347. set show_details [expr 1-$show_details]
  348. save_var show_details $show_details
  349. }
  350. if {[string length $console]!=0} {
  351. append buffer {
  352. <tr style="height:100%;">
  353. <td style="height:100%;background-color:red;" colspan="6">
  354. <table style="padding:0px;border-collapse:collapse;background-color:#ffffff;width:100%" class="textgray">
  355. <td style="width:25px;">&nbsp;</td>
  356. }
  357. if {$show_details==1} {
  358. append buffer <
  359. append buffer {td style="background-color:#dddddd;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;"}
  360. append buffer >
  361. } else {
  362. append buffer <
  363. 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;"}
  364. append buffer >
  365. }
  366. append buffer {
  367. <a class="openocd" href="targets.tcl?toggle_details=1">
  368. }
  369. if {$show_details==1} {
  370. append buffer "Hide details"
  371. append buffer <br/>
  372. } else {
  373. append buffer {<div style="position:relative;top:7px;text-align:center;">}
  374. append buffer "Show details"
  375. append buffer {</div>}
  376. }
  377. append buffer {
  378. </a>
  379. }
  380. if {$show_details==1} {
  381. append buffer $console
  382. }
  383. append buffer {</td>}
  384. if {$show_details!=1} {
  385. append buffer {<td>&nbsp;</td>}
  386. }
  387. append buffer {
  388. <td style="width:25px;">&nbsp;</td>
  389. </table>
  390. </td>
  391. </tr>
  392. }
  393. }
  394. append buffer {
  395. <tr>
  396. <td style="height:30px;background-image:url('menu_cuts/center_bottom.png');background-repeat: no-repeat;background-position:top right;" colspan="6">
  397. <div style="width:500px;background-color:#ffffff;height:100%;">
  398. &nbsp;
  399. </div>
  400. </td>
  401. </tr>
  402. </table>
  403. </td>
  404. <td style="width:6px;"/>
  405. <td style="width:245px;height:100%">
  406. <table style="padding:0px;border-collapse:collapse;height:100%;">
  407. <tr>
  408. <td style="width:103px;height:29px;background-image:url('menu_cuts/h_tab2_selected.png');background-repeat: no-repeat;">
  409. <div style="position:relative;top:7px;;font-weight:bold;text-align:center;width:100px;" class="textgray">
  410. Documentation
  411. </div>
  412. </td>
  413. <td width="40px">
  414. &nbsp;
  415. </td>
  416. <td/>
  417. </tr>
  418. <tr>
  419. <td style="height:10px;width:245px;background-image:url('menu_cuts/right_top_small.png');" colspan="3"/>
  420. </tr>
  421. <tr>
  422. <td style="background-color:#d8d7d7;width:245px;padding-left:10px;padding-buttom:10px;line-height:17px;" colspan="3">
  423. <a target="_blank" href="http://openocd.berlios.de/doc/openocd.pdf">OpenOCD Manual</a>
  424. <br/>
  425. </td>
  426. </tr>
  427. <tr>
  428. <td style="background-color:#d8d7d7;height:15px;" colspan="3"/>
  429. </tr>
  430. <tr>
  431. <td colspan="3">
  432. <table style="padding:0px;border-collapse:collapse;">
  433. <td style="background-color:#d8d7d7;width:10px;height:1px"/>
  434. <td style="background-color:#999999;width:225px; height:1px;"/>
  435. <td style="background-color:#d8d7d7;width:10px;height:1px"/>
  436. </table>
  437. </td>
  438. </tr>
  439. <tr>
  440. <td style="background-color:#d8d7d7;height:15px;" colspan="3"/>
  441. </tr>
  442. <tr style="height:100%;">
  443. <td style="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;" colspan="3" class="textgray">
  444. Quick start guide on how to configure a target.
  445. </td>
  446. </tr>
  447. <tr>
  448. <td style="height:30px;background-image:url('menu_cuts/right_bottom.png');" colspan="3">
  449. &nbsp;
  450. </td>
  451. </tr>
  452. </table>
  453. </td>
  454. </tr>
  455. </table>
  456. </body>
  457. </html>
  458. }
  459. start_chunked "html"
  460. write_chunked $buffer
  461. end_chunked