summaryrefslogtreecommitdiff
path: root/tcl/target
diff options
context:
space:
mode:
authorSpencer Oliver <ntfreak@users.sourceforge.net>2010-12-02 13:12:48 +0000
committerSpencer Oliver <ntfreak@users.sourceforge.net>2010-12-03 09:02:10 +0000
commit0ac6c0d1a8ff35d2022f11fd0ab057c82c12157b (patch)
tree86ebdac307341d13a347f17afe3ec1ca3a2b3997 /tcl/target
parent7b2687b45bb1ff5fab478c76838a347f262d5f67 (diff)
downloadopenocd_libswd-0ac6c0d1a8ff35d2022f11fd0ab057c82c12157b.tar.gz
openocd_libswd-0ac6c0d1a8ff35d2022f11fd0ab057c82c12157b.tar.bz2
openocd_libswd-0ac6c0d1a8ff35d2022f11fd0ab057c82c12157b.tar.xz
openocd_libswd-0ac6c0d1a8ff35d2022f11fd0ab057c82c12157b.zip
stm32: set default soft reset config
If no srst is configured then default to using sysresetreq to reset the target. Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
Diffstat (limited to 'tcl/target')
-rw-r--r--tcl/target/stm32.cfg4
1 files changed, 4 insertions, 0 deletions
diff --git a/tcl/target/stm32.cfg b/tcl/target/stm32.cfg
index fa59e351..86e6ebb8 100644
--- a/tcl/target/stm32.cfg
+++ b/tcl/target/stm32.cfg
@@ -64,3 +64,7 @@ $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE
set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME stm32x 0 0 0 0 $_TARGETNAME
+
+# if srst is not fitted use SYSRESETREQ to
+# perform a soft reset
+cortex_m3 reset_config sysresetreq