summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSpencer Oliver <ntfreak@users.sourceforge.net>2010-08-25 20:29:22 +0100
committerSpencer Oliver <ntfreak@users.sourceforge.net>2010-08-31 20:09:26 +0100
commit3c69eee9ef481333eb08e72badc9404e607f861c (patch)
tree28b7bcb6f0673819a83856781f9dcc38127ac7a4 /doc
parent1ca286557a7b41211cae7026c99d41af031af177 (diff)
downloadopenocd_libswd-3c69eee9ef481333eb08e72badc9404e607f861c.tar.gz
openocd_libswd-3c69eee9ef481333eb08e72badc9404e607f861c.tar.bz2
openocd_libswd-3c69eee9ef481333eb08e72badc9404e607f861c.tar.xz
openocd_libswd-3c69eee9ef481333eb08e72badc9404e607f861c.zip
cortex m3: add cortex_m3 reset_config cmd
This new cmd adds the ability to choose the Cortex-M3 reset method used. It defaults to using SRST for reset if available otherwise it falls back to using NVIC VECTRESET. This is known to work on all cores. Move any luminary specific reset handling to the stellaris cfg file. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
Diffstat (limited to 'doc')
-rw-r--r--doc/openocd.texi15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/openocd.texi b/doc/openocd.texi
index cbb9c141..bc026b90 100644
--- a/doc/openocd.texi
+++ b/doc/openocd.texi
@@ -6592,6 +6592,21 @@ must also be explicitly enabled.
This finishes by listing the current vector catch configuration.
@end deffn
+@deffn Command {cortex_m3 reset_config} (@option{srst}|@option{sysresetreq}|@option{vectreset})
+Control reset handling. The default @option{srst} is to use srst if fitted,
+otherwise fallback to @option{vectreset}.
+@itemize @minus
+@item @option{srst} use hardware srst if fitted otherwise fallback to @option{vectreset}.
+@item @option{sysresetreq} use NVIC SYSRESETREQ to reset system.
+@item @option{vectreset} use NVIC VECTRESET to reset system.
+@end itemize
+Using @option{vectreset} is a safe option for all current Cortex-M3 cores.
+This however has the disadvantage of only resetting the core, all peripherals
+are uneffected. A solution would be to use a @code{reset-init} event handler to manually reset
+the peripherals.
+@xref{Target Events}.
+@end deffn
+
@anchor{Software Debug Messages and Tracing}
@section Software Debug Messages and Tracing
@cindex Linux-ARM DCC support