stm32: set default soft reset config
[fw/openocd] / tcl / target / stm32.cfg
index fa59e351d57506445aa6e1cbc723068af8153ad1..86e6ebb89437559bea0edf8551046822a262492d 100644 (file)
@@ -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