From: Spencer Oliver Date: Thu, 2 Dec 2010 13:12:48 +0000 (+0000) Subject: stm32: set default soft reset config X-Git-Tag: v0.5.0-rc1~298 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0ac6c0d1a8ff35d2022f11fd0ab057c82c12157b;p=openocd 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 --- 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