summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-09-12 13:05:20 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-09-12 13:05:20 +0000
commita17eb667a348784e67ddbdb4fb50bcc91e5f575b (patch)
tree26cfcee773affad381d646b4c7b18cc9bb6ad376 /doc
parent40f361dd944803e500169337fffe7713842fd632 (diff)
downloadopenocd+libswd-a17eb667a348784e67ddbdb4fb50bcc91e5f575b.tar.gz
openocd+libswd-a17eb667a348784e67ddbdb4fb50bcc91e5f575b.tar.bz2
openocd+libswd-a17eb667a348784e67ddbdb4fb50bcc91e5f575b.tar.xz
openocd+libswd-a17eb667a348784e67ddbdb4fb50bcc91e5f575b.zip
Dirk Behme <dirk.behme@googlemail.com> document post TAP reset event
git-svn-id: svn://svn.berlios.de/openocd/trunk@2700 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'doc')
-rw-r--r--doc/openocd.texi17
1 files changed, 13 insertions, 4 deletions
diff --git a/doc/openocd.texi b/doc/openocd.texi
index 62bb1eb8..389b2a9d 100644
--- a/doc/openocd.texi
+++ b/doc/openocd.texi
@@ -2289,14 +2289,14 @@ does include a kind of JTAG router functionality.
@deffn Command {jtag cget} dotted.name @option{-event} name
@deffnx Command {jtag configure} dotted.name @option{-event} name string
-At this writing this mechanism is used only for event handling,
-and the only two events relate to TAP enabling and disabling.
+At this writing this mechanism is used only for event handling.
+Three events are available. Two events relate to TAP enabling
+and disabling, one to post reset handling.
The @code{configure} subcommand assigns an event handler,
a TCL string which is evaluated when the event is triggered.
The @code{cget} subcommand returns that handler.
-The two possible values for an event @var{name}
-are @option{tap-disable} and @option{tap-enable}.
+The three possible values for an event @var{name} are @option{tap-disable}, @option{tap-enable} and @option{post-reset}.
So for example, when defining a TAP for a CPU connected to
a JTAG router, you should define TAP event handlers using
@@ -2312,6 +2312,15 @@ jtag configure CHIP.cpu -event tap-disable @{
... jtag operations using CHIP.jrc
@}
@end example
+
+If you need some post reset action, you can do:
+
+@example
+jtag configure CHIP.cpu -event post-reset @{
+ echo "Reset done"
+ ... jtag operations to be done after reset
+@}
+@end example
@end deffn
@deffn Command {jtag tapdisable} dotted.name