1 # converted to .tcl by html2tcl.tcl
12 <html xmlns
="http://www.w3.org/TR/REC-html40">
14 <title
>OpenOCD debugger
</title
>
15 <meta charset
="utf-8" content
="text/html" http-equiv
="Content-Type"/>
16 <link type
="text/css" rel
="stylesheet" href
="menuweb.css"/>
21 set upload_filename
/ram
/upload
24 <body style
="margin:0px;">
25 <div style
="width:974px;height:85px;">
26 <div style
="float:left;position:relative;left:32px;width:478px;">
31 <div style
="float:left;position:relative;height:26px; width:278px;left:122px;background-image:url('menu_cuts/top_right.png');">
32 <div style
="position:relative;left:15px;top:4px;" class
="textlight">
34 append buffer
[capture version
]
39 <table style
="padding:0px;border-collapse:collapse;">
41 <td style
="width:33px;">
42 <div style
="width:20px;height:510px;">
46 <td style
="vertical-align:top;height:100%;width:140px;padding:0px;">
47 <table style
="padding:0px;border-collapse:collapse;height:100%;width:140px;">
48 <tr style
="height:59px;">
52 <td style
="width:140px;height:35px;background-image:url('menu_cuts/v_1.png')"/>
55 <td style
="width:140px;background-image:url('menu_cuts/v_2_tile.png')"/>
58 <td style
="width:140px;height:140px;background-image:url('menu_cuts/v_3.png')"/>
62 <td style
="vertical-align:top;padding:0px;height:100%">
63 <table style
="padding:0px;border-collapse:collapse;height:100%;">
66 <table style
="padding:0px;border-collapse:collapse;">
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
="index.tcl">Config Target
</a
>
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
="flashinfo.tcl">Flash
</a
>
78 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
79 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
80 <a href
="browsemem.tcl">Memory
</a
>
83 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
84 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
85 <a href
="openocd.tcl">OpenOCD
</a
>
93 <td style
="height:30px;width:535px;background-image:url('menu_cuts/center_top.png');background-repeat: no-repeat;background-position:top right;" colspan
="6">
94 <div style
="width:500px;background-color:#ffffff;height:100%;">
100 <td style
="background-color:#ffffff;text-indent:30px;height:40px;" colspan
="6">
101 <H1
>Target config quick start guide
</H1
>
104 <tr style
="height:100%;">
105 <td style
="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;" colspan
="6">
107 A target needs an openocd.cfg
file. This config
file sets up
108 the CPU
, flash and reset init script. Either ZY1000 ships with an
109 openocd.cfg
file for your target or you need to take an existing
110 config
file and modify it
for your needs.
112 The reset init script is crucial. It will
set up e.g. MMU
, chip
113 select registers
, etc.
after a reset. The init.cfg
(reset init script
)
114 is embedded into the openocd.cfg
file in the sampls Zylin provides.
116 Writing an openocd.cfg from scratch is a non-trivial exercise
, but
117 fortunally it only has to be done once
for a target and afterwards it
118 rarely
if ever needs to be changed.
126 set toggle_details
[formfetch toggle_details
]
127 if {[string length
$toggle_details]==0} {
130 set show_details
[load_var show_details
]
131 if {[string length
$show_details]==0} {
134 if {$toggle_details==1} {
135 set show_details
[expr 1-$show_details]
136 save_var show_details
$show_details
139 if {[string length
$console]!=0} {
142 <tr style
="height:100%;">
143 <td style
="height:100%;background-color:red;" colspan
="6">
144 <table style
="padding:0px;border-collapse:collapse;background-color:#ffffff;width:100%" class
="textgray">
145 <td style
="width:25px;"> 
;</td
>
148 if {$show_details==1} {
150 append buffer
{td style
="background-color:#dddddd;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;"}
154 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;"}
159 <a class
="openocd" href
="targets.tcl?toggle_details=1">
162 if {$show_details==1} {
163 append buffer
"Hide details"
166 append buffer
{<div style
="position:relative;top:7px;text-align:center;">}
167 append buffer
"Show details"
168 append buffer
{</div
>}
175 if {$show_details==1} {
176 append buffer
$console
179 append buffer
{</td
>}
181 if {$show_details!=1} {
182 append buffer
{<td
> 
;</td
>}
186 <td style
="width:25px;"> 
;</td
>
196 <td style
="height:30px;background-image:url('menu_cuts/center_bottom.png');background-repeat: no-repeat;background-position:top right;" colspan
="6">
197 <div style
="width:500px;background-color:#ffffff;height:100%;">
204 <td style
="width:6px;"/>
205 <td style
="width:245px;height:100%">
206 <table style
="padding:0px;border-collapse:collapse;height:100%;">
208 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab2_selected.png');background-repeat: no-repeat;">
209 <div style
="position:relative;top:7px;;font-weight:bold;text-align:center;width:100px;" class
="textgray">
219 <td style
="height:10px;width:245px;background-image:url('menu_cuts/right_top_small.png');" colspan
="3"/>
222 <td style
="background-color:#d8d7d7;width:245px;padding-left:10px;padding-buttom:10px;line-height:17px;" colspan
="3">
223 <a target
="_blank" href
="http://openocd.berlios.de/doc/openocd.pdf">OpenOCD Manual
</a
>
228 <td style
="background-color:#d8d7d7;height:15px;" colspan
="3"/>
232 <table style
="padding:0px;border-collapse:collapse;">
233 <td style
="background-color:#d8d7d7;width:10px;height:1px"/>
234 <td style
="background-color:#999999;width:225px; height:1px;"/>
235 <td style
="background-color:#d8d7d7;width:10px;height:1px"/>
240 <td style
="background-color:#d8d7d7;height:15px;" colspan
="3"/>
242 <tr style
="height:100%;">
243 <td style
="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;" colspan
="3" class
="textgray">
245 Quick start guide on how to configure a target.
249 <td style
="height:30px;background-image:url('menu_cuts/right_bottom.png');" colspan
="3">
299 <html xmlns
="http://www.w3.org/TR/REC-html40">
301 <title
>OpenOCD debugger
</title
>
302 <meta charset
="utf-8" content
="text/html" http-equiv
="Content-Type"/>
303 <link type
="text/css" rel
="stylesheet" href
="menuweb.css"/>
308 set upload_filename
/ram
/upload
311 <body style
="margin:0px;">
312 <div style
="width:974px;height:85px;">
313 <div style
="float:left;position:relative;left:32px;width:478px;">
318 <div style
="float:left;position:relative;height:26px; width:278px;left:122px;background-image:url('menu_cuts/top_right.png');">
319 <div style
="position:relative;left:15px;top:4px;" class
="textlight">
321 append buffer
[capture version
]
326 <table style
="padding:0px;border-collapse:collapse;">
328 <td style
="width:33px;">
329 <div style
="width:20px;height:510px;">
333 <td style
="vertical-align:top;height:100%;width:140px;padding:0px;">
334 <table style
="padding:0px;border-collapse:collapse;height:100%;width:140px;">
335 <tr style
="height:59px;">
339 <td style
="width:140px;height:35px;background-image:url('menu_cuts/v_1.png')"/>
342 <td style
="width:140px;background-image:url('menu_cuts/v_2_tile.png')"/>
345 <td style
="width:140px;height:140px;background-image:url('menu_cuts/v_3.png')"/>
349 <td style
="vertical-align:top;padding:0px;height:100%">
350 <table style
="padding:0px;border-collapse:collapse;height:100%;">
353 <table style
="padding:0px;border-collapse:collapse;">
355 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
356 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
357 <a href
="index.tcl">Config Target
</a
>
360 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
361 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
362 <a href
="flashinfo.tcl">Flash
</a
>
365 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
366 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
367 <a href
="browsemem.tcl">Memory
</a
>
370 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
371 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
372 <a href
="openocd.tcl">OpenOCD
</a
>
380 <td style
="height:30px;width:535px;background-image:url('menu_cuts/center_top.png');background-repeat: no-repeat;background-position:top right;" colspan
="6">
381 <div style
="width:500px;background-color:#ffffff;height:100%;">
387 <td style
="background-color:#ffffff;text-indent:30px;height:40px;" colspan
="6">
388 <H1
>Target config quick start guide
</H1
>
391 <tr style
="height:100%;">
392 <td style
="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;" colspan
="6">
394 A target needs an openocd.cfg
file. This config
file sets up
395 the CPU
, flash and reset init script. Either ZY1000 ships with an
396 openocd.cfg
file for your target or you need to take an existing
397 config
file and modify it
for your needs.
399 The reset init script is crucial. It will
set up e.g. MMU
, chip
400 select registers
, etc.
after a reset. The init.cfg
(reset init script
)
401 is embedded into the openocd.cfg
file in the sampls Zylin provides.
403 Writing an openocd.cfg from scratch is a non-trivial exercise
, but
404 fortunally it only has to be done once
for a target and afterwards it
405 rarely
if ever needs to be changed.
413 set toggle_details
[formfetch toggle_details
]
414 if {[string length
$toggle_details]==0} {
417 set show_details
[load_var show_details
]
418 if {[string length
$show_details]==0} {
421 if {$toggle_details==1} {
422 set show_details
[expr 1-$show_details]
423 save_var show_details
$show_details
426 if {[string length
$console]!=0} {
429 <tr style
="height:100%;">
430 <td style
="height:100%;background-color:red;" colspan
="6">
431 <table style
="padding:0px;border-collapse:collapse;background-color:#ffffff;width:100%" class
="textgray">
432 <td style
="width:25px;"> 
;</td
>
435 if {$show_details==1} {
437 append buffer
{td style
="background-color:#dddddd;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;"}
441 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;"}
446 <a class
="openocd" href
="targets.tcl?toggle_details=1">
449 if {$show_details==1} {
450 append buffer
"Hide details"
453 append buffer
{<div style
="position:relative;top:7px;text-align:center;">}
454 append buffer
"Show details"
455 append buffer
{</div
>}
462 if {$show_details==1} {
463 append buffer
$console
466 append buffer
{</td
>}
468 if {$show_details!=1} {
469 append buffer
{<td
> 
;</td
>}
473 <td style
="width:25px;"> 
;</td
>
483 <td style
="height:30px;background-image:url('menu_cuts/center_bottom.png');background-repeat: no-repeat;background-position:top right;" colspan
="6">
484 <div style
="width:500px;background-color:#ffffff;height:100%;">
491 <td style
="width:6px;"/>
492 <td style
="width:245px;height:100%">
493 <table style
="padding:0px;border-collapse:collapse;height:100%;">
495 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab2_selected.png');background-repeat: no-repeat;">
496 <div style
="position:relative;top:7px;;font-weight:bold;text-align:center;width:100px;" class
="textgray">
506 <td style
="height:10px;width:245px;background-image:url('menu_cuts/right_top_small.png');" colspan
="3"/>
509 <td style
="background-color:#d8d7d7;width:245px;padding-left:10px;padding-buttom:10px;line-height:17px;" colspan
="3">
510 <a target
="_blank" href
="http://openocd.berlios.de/doc/openocd.pdf">OpenOCD Manual
</a
>
515 <td style
="background-color:#d8d7d7;height:15px;" colspan
="3"/>
519 <table style
="padding:0px;border-collapse:collapse;">
520 <td style
="background-color:#d8d7d7;width:10px;height:1px"/>
521 <td style
="background-color:#999999;width:225px; height:1px;"/>
522 <td style
="background-color:#d8d7d7;width:10px;height:1px"/>
527 <td style
="background-color:#d8d7d7;height:15px;" colspan
="3"/>
529 <tr style
="height:100%;">
530 <td style
="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;" colspan
="3" class
="textgray">
532 Quick start guide on how to configure a target.
536 <td style
="height:30px;background-image:url('menu_cuts/right_bottom.png');" colspan
="3">
560 write_chunked
$buffer
Linking to existing account procedure
If you already have an account and want to add another login method
you
MUST first sign in with your existing account and
then change URL to read
https://review.openocd.org/login/?link
to get to this page again but this time it'll work for linking. Thank you.
SSH host keys fingerprints
1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=.. |
|+o.. . |
|*.o . . |
|+B . . . |
|Bo. = o S |
|Oo.+ + = |
|oB=.* = . o |
| =+=.+ + E |
|. .=o . o |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)