2009-01-08 11:23:55 -06:00
|
|
|
.TH "OPENOCD" "1" "January 08, 2009"
|
2007-06-14 04:47:00 -05:00
|
|
|
.SH "NAME"
|
|
|
|
openocd \- A free and open on\-chip debugging, in\-system programming and
|
2009-01-08 11:23:55 -06:00
|
|
|
boundary\-scan testing tool for ARM and MIPS systems
|
2007-06-14 04:47:00 -05:00
|
|
|
.SH "SYNOPSIS"
|
2009-01-08 11:23:55 -06:00
|
|
|
.B openocd \fR[\fB\-fsdlcphv\fR] [\fB\-\-file\fR <filename>] [\fB\-\-search\fR <dirname>] [\fB\-\-debug\fR <debuglevel>] [\fB\-\-log_output\fR <filename>] [\fB\-\-command\fR <cmd>] [\fB\-\-pipe\fR] [\fB\-\-help\fR] [\fB\-\-version\fR]
|
2007-06-14 04:47:00 -05:00
|
|
|
.SH "DESCRIPTION"
|
|
|
|
.B OpenOCD
|
|
|
|
is an on\-chip debugging, in\-system programming and boundary\-scan
|
2009-01-08 11:23:55 -06:00
|
|
|
testing tool for various ARM and MIPS systems.
|
2007-06-14 04:47:00 -05:00
|
|
|
.PP
|
|
|
|
The debugger uses an IEEE 1149\-1 compliant JTAG TAP bus master to access
|
2009-01-08 11:23:55 -06:00
|
|
|
on\-chip debug functionality available on ARM based microcontrollers or
|
|
|
|
system-on-chip solutions. For MIPS systems the EJTAG interface is supported.
|
2007-06-14 04:47:00 -05:00
|
|
|
.PP
|
2009-01-08 11:23:55 -06:00
|
|
|
User interaction is realized through a telnet command line interface,
|
|
|
|
a gdb (the GNU debugger) remote protocol server, and a simplified RPC
|
|
|
|
connection that can be used to interface with OpenOCD's Jim Tcl engine.
|
2007-06-14 04:47:00 -05:00
|
|
|
.PP
|
2008-02-28 07:04:49 -06:00
|
|
|
OpenOCD supports various different types of JTAG interfaces/programmers,
|
2009-01-08 11:23:55 -06:00
|
|
|
please check the \fIopenocd\fR info page for the complete list.
|
2007-06-14 04:47:00 -05:00
|
|
|
.SH "OPTIONS"
|
|
|
|
.TP
|
|
|
|
.B "\-f, \-\-file <filename>"
|
|
|
|
Use configuration file
|
|
|
|
.BR <filename> .
|
2009-01-08 11:23:55 -06:00
|
|
|
In order to specify multiple config files, you can use multiple
|
|
|
|
.B \-\-file
|
|
|
|
arguments. If this option is omitted, the config file
|
2007-06-14 04:47:00 -05:00
|
|
|
.B openocd.cfg
|
|
|
|
in the current working directory will be used.
|
|
|
|
.TP
|
2008-02-29 06:30:21 -06:00
|
|
|
.B "\-s, \-\-search <dirname>"
|
|
|
|
Search for config files and scripts in the directory
|
|
|
|
.BR <dirname> .
|
2009-01-08 11:23:55 -06:00
|
|
|
If this option is omitted, OpenOCD searches for config files and scripts
|
2008-02-29 06:30:21 -06:00
|
|
|
in the current directory.
|
|
|
|
.TP
|
2007-06-14 04:47:00 -05:00
|
|
|
.B "\-d, \-\-debug <debuglevel>"
|
|
|
|
Set debug level. Possible values are:
|
|
|
|
.br
|
|
|
|
.RB " * " 0 " (errors)"
|
|
|
|
.br
|
|
|
|
.RB " * " 1 " (warnings)"
|
|
|
|
.br
|
|
|
|
.RB " * " 2 " (informational messages)"
|
|
|
|
.br
|
|
|
|
.RB " * " 3 " (debug messages)"
|
|
|
|
.br
|
|
|
|
The default level is
|
|
|
|
.BR 2 .
|
|
|
|
.TP
|
|
|
|
.B "\-l, \-\-log_output <filename>"
|
|
|
|
Redirect log output to the file
|
|
|
|
.BR <filename> .
|
|
|
|
Per default the log output is printed on
|
|
|
|
.BR stderr .
|
|
|
|
.TP
|
2008-02-29 06:30:21 -06:00
|
|
|
.B "\-c, \-\-command <cmd>"
|
|
|
|
Run the command
|
|
|
|
.BR <cmd> .
|
|
|
|
.TP
|
2009-01-08 11:23:55 -06:00
|
|
|
.B "\-p, \-\-pipe"
|
|
|
|
Use pipes when talking to gdb.
|
|
|
|
.TP
|
2007-06-14 04:47:00 -05:00
|
|
|
.B "\-h, \-\-help"
|
|
|
|
Show a help text and exit.
|
2008-02-29 08:34:17 -06:00
|
|
|
.TP
|
|
|
|
.B "\-v, \-\-version"
|
|
|
|
Show version information and exit.
|
2007-06-14 04:47:00 -05:00
|
|
|
.SH "BUGS"
|
|
|
|
Please report any bugs at
|
|
|
|
.B http://developer.berlios.de/bugs/?group_id=4148
|
|
|
|
or on the mailing list
|
|
|
|
.BR openocd\-development@lists.berlios.de .
|
|
|
|
.SH "LICENCE"
|
|
|
|
.B OpenOCD
|
|
|
|
is covered by the GNU General Public License (GPL), version 2 or later.
|
|
|
|
.SH "SEE ALSO"
|
2007-07-26 04:34:49 -05:00
|
|
|
.BR jtag (1)
|
2008-02-29 06:30:21 -06:00
|
|
|
.PP
|
|
|
|
The full documentation for
|
|
|
|
.B openocd
|
|
|
|
is maintained as a Texinfo manual. If the
|
|
|
|
.BR info
|
2009-01-08 11:23:55 -06:00
|
|
|
(or
|
|
|
|
.BR pinfo )
|
2008-02-29 06:30:21 -06:00
|
|
|
and
|
|
|
|
.BR openocd
|
|
|
|
programs are properly installed at your site, the command
|
2009-01-08 11:23:55 -06:00
|
|
|
.B info openocd
|
2008-02-29 06:30:21 -06:00
|
|
|
should give you access to the complete manual.
|
|
|
|
.PP
|
|
|
|
Also, the OpenOCD wiki contains some more information and examples:
|
|
|
|
.B http://openfacts.berlios.de/index-en.phtml?title=Open_On-Chip_Debugger
|
2007-06-14 04:47:00 -05:00
|
|
|
.SH "AUTHORS"
|
2008-02-28 07:04:49 -06:00
|
|
|
Please see the file AUTHORS.
|
2007-06-14 04:47:00 -05:00
|
|
|
.PP
|
|
|
|
This manual page was written by Uwe Hermann <uwe@hermann\-uwe.de>.
|
2008-02-28 07:04:49 -06:00
|
|
|
It is licensed under the terms of the GNU GPL (version 2 or later).
|