aboutsummaryrefslogtreecommitdiff
path: root/tcl/target/stm32l1.cfg
diff options
context:
space:
mode:
authorPaul Fertser <fercerpav@gmail.com>2015-01-10 13:19:26 +0300
committerSpencer Oliver <spen@spen-soft.co.uk>2015-01-26 20:54:51 +0000
commita1bbf4b75bc68aeed3c72e37b302bb36757401c2 (patch)
tree6a60ed0faa53c7aead5f62c4f6fe162b48d14df6 /tcl/target/stm32l1.cfg
parent7dd50909e32296fc4ceff64d8443f5b9fa75bbca (diff)
downloadriscv-openocd-a1bbf4b75bc68aeed3c72e37b302bb36757401c2.zip
riscv-openocd-a1bbf4b75bc68aeed3c72e37b302bb36757401c2.tar.gz
riscv-openocd-a1bbf4b75bc68aeed3c72e37b302bb36757401c2.tar.bz2
cfg: add srst_nogate to the supported targets, remove from board configs
It depends on the particular target whether it can work with SRST asserted or not, so this belongs to the target config rather than the board config. Also, this allows for simple openocd -f myboard.cfg -c "reset_config connect_assert_srst" command to be used whenever a user feels a need to connect to an unresponsive target. Change-Id: I3d8da9ae47088fc0c75a20bfdd20074be1014de0 Signed-off-by: Paul Fertser <fercerpav@gmail.com> Reviewed-on: http://openocd.zylin.com/2459 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'tcl/target/stm32l1.cfg')
-rw-r--r--tcl/target/stm32l1.cfg2
1 files changed, 2 insertions, 0 deletions
diff --git a/tcl/target/stm32l1.cfg b/tcl/target/stm32l1.cfg
index ccbec09..8591830 100644
--- a/tcl/target/stm32l1.cfg
+++ b/tcl/target/stm32l1.cfg
@@ -75,6 +75,8 @@ $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE
set _FLASHNAME $_CHIPNAME.flash
flash bank $_FLASHNAME stm32lx 0x08000000 0 0 0 $_TARGETNAME
+reset_config srst_nogate
+
if {![using_hla]} {
# if srst is not fitted use SYSRESETREQ to
# perform a soft reset