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 OpenOCD 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 OpenOCD 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">
297 <html xmlns
="http://www.w3.org/TR/REC-html40">
299 <title
>OpenOCD debugger
</title
>
300 <meta charset
="utf-8" content
="text/html" http-equiv
="Content-Type"/>
301 <link type
="text/css" rel
="stylesheet" href
="menuweb.css"/>
306 set upload_filename
/ram
/upload
309 <body style
="margin:0px;">
310 <div style
="width:974px;height:85px;">
311 <div style
="float:left;position:relative;left:32px;width:478px;">
316 <div style
="float:left;position:relative;height:26px; width:278px;left:122px;background-image:url('menu_cuts/top_right.png');">
317 <div style
="position:relative;left:15px;top:4px;" class
="textlight">
319 append buffer
[capture version
]
324 <table style
="padding:0px;border-collapse:collapse;">
326 <td style
="width:33px;">
327 <div style
="width:20px;height:510px;">
331 <td style
="vertical-align:top;height:100%;width:140px;padding:0px;">
332 <table style
="padding:0px;border-collapse:collapse;height:100%;width:140px;">
333 <tr style
="height:59px;">
337 <td style
="width:140px;height:35px;background-image:url('menu_cuts/v_1.png')"/>
340 <td style
="width:140px;background-image:url('menu_cuts/v_2_tile.png')"/>
343 <td style
="width:140px;height:140px;background-image:url('menu_cuts/v_3.png')"/>
347 <td style
="vertical-align:top;padding:0px;height:100%">
348 <table style
="padding:0px;border-collapse:collapse;height:100%;">
351 <table style
="padding:0px;border-collapse:collapse;">
353 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
354 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
355 <a href
="index.tcl">Config Target
</a
>
358 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
359 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
360 <a href
="flashinfo.tcl">Flash
</a
>
363 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
364 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
365 <a href
="browsemem.tcl">Memory
</a
>
368 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab1.png');background-repeat: no-repeat;">
369 <div style
="position:relative;top:7px;font-weight:bold;text-align:center;width:100px;">
370 <a href
="openocd.tcl">OpenOCD
</a
>
378 <td style
="height:30px;width:535px;background-image:url('menu_cuts/center_top.png');background-repeat: no-repeat;background-position:top right;" colspan
="6">
379 <div style
="width:500px;background-color:#ffffff;height:100%;">
385 <td style
="background-color:#ffffff;text-indent:30px;height:40px;" colspan
="6">
386 <H1
>Target config quick start guide
</H1
>
389 <tr style
="height:100%;">
390 <td style
="background-color:#ffffff;padding-left:30px;padding-right:30px;width=535px;height:100%;" colspan
="6">
392 A target needs an openocd.cfg
file. This config
file sets up
393 the CPU
, flash and reset init script. Either OpenOCD ships with an
394 openocd.cfg
file for your target or you need to take an existing
395 config
file and modify it
for your needs.
397 The reset init script is crucial. It will
set up e.g. MMU
, chip
398 select registers
, etc.
after a reset. The init.cfg
(reset init script
)
399 is embedded into the openocd.cfg
file in the sampls OpenOCD provides.
401 Writing an openocd.cfg from scratch is a non-trivial exercise
, but
402 fortunally it only has to be done once
for a target and afterwards it
403 rarely
if ever needs to be changed.
411 set toggle_details
[formfetch toggle_details
]
412 if {[string length
$toggle_details]==0} {
415 set show_details
[load_var show_details
]
416 if {[string length
$show_details]==0} {
419 if {$toggle_details==1} {
420 set show_details
[expr 1-$show_details]
421 save_var show_details
$show_details
424 if {[string length
$console]!=0} {
427 <tr style
="height:100%;">
428 <td style
="height:100%;background-color:red;" colspan
="6">
429 <table style
="padding:0px;border-collapse:collapse;background-color:#ffffff;width:100%" class
="textgray">
430 <td style
="width:25px;"> 
;</td
>
433 if {$show_details==1} {
435 append buffer
{td style
="background-color:#dddddd;padding-left:5px;padding-right:5px;padding-top:3px;padding-bottom:3px;"}
439 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;"}
444 <a class
="openocd" href
="targets.tcl?toggle_details=1">
447 if {$show_details==1} {
448 append buffer
"Hide details"
451 append buffer
{<div style
="position:relative;top:7px;text-align:center;">}
452 append buffer
"Show details"
453 append buffer
{</div
>}
460 if {$show_details==1} {
461 append buffer
$console
464 append buffer
{</td
>}
466 if {$show_details!=1} {
467 append buffer
{<td
> 
;</td
>}
471 <td style
="width:25px;"> 
;</td
>
481 <td style
="height:30px;background-image:url('menu_cuts/center_bottom.png');background-repeat: no-repeat;background-position:top right;" colspan
="6">
482 <div style
="width:500px;background-color:#ffffff;height:100%;">
489 <td style
="width:6px;"/>
490 <td style
="width:245px;height:100%">
491 <table style
="padding:0px;border-collapse:collapse;height:100%;">
493 <td style
="width:103px;height:29px;background-image:url('menu_cuts/h_tab2_selected.png');background-repeat: no-repeat;">
494 <div style
="position:relative;top:7px;;font-weight:bold;text-align:center;width:100px;" class
="textgray">
504 <td style
="height:10px;width:245px;background-image:url('menu_cuts/right_top_small.png');" colspan
="3"/>
507 <td style
="background-color:#d8d7d7;width:245px;padding-left:10px;padding-buttom:10px;line-height:17px;" colspan
="3">
508 <a target
="_blank" href
="http://openocd.berlios.de/doc/openocd.pdf">OpenOCD Manual
</a
>
513 <td style
="background-color:#d8d7d7;height:15px;" colspan
="3"/>
517 <table style
="padding:0px;border-collapse:collapse;">
518 <td style
="background-color:#d8d7d7;width:10px;height:1px"/>
519 <td style
="background-color:#999999;width:225px; height:1px;"/>
520 <td style
="background-color:#d8d7d7;width:10px;height:1px"/>
525 <td style
="background-color:#d8d7d7;height:15px;" colspan
="3"/>
527 <tr style
="height:100%;">
528 <td style
="height:100%;background-color:#d8d7d7;padding-left:10px;padding-right:10px;" colspan
="3" class
="textgray">
530 Quick start guide on how to configure a target.
534 <td style
="height:30px;background-image:url('menu_cuts/right_bottom.png');" colspan
="3">
558 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)