From f0ef9960b6f4caacc69c4a839e6b759e8c6a9b82 Mon Sep 17 00:00:00 2001 From: Spencer Oliver Date: Mon, 20 Feb 2012 11:39:12 +0000 Subject: [PATCH] cfg: enable stm32f2x SYSRESETREQ support MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The stm32 family supports using SYSRESETREQ as a software reset, lets use it. Change-Id: I171ffa8d888a2d0c28b266051030311521e9bca9 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/472 Tested-by: jenkins Reviewed-by: Mathias Küster --- tcl/target/stm32f2x.cfg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tcl/target/stm32f2x.cfg b/tcl/target/stm32f2x.cfg index ae637517..a3076535 100644 --- a/tcl/target/stm32f2x.cfg +++ b/tcl/target/stm32f2x.cfg @@ -59,3 +59,6 @@ $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE set _FLASHNAME $_CHIPNAME.flash flash bank $_FLASHNAME stm32f2x 0 0 0 0 $_TARGETNAME +# if srst is not fitted use SYSRESETREQ to +# perform a soft reset +cortex_m3 reset_config sysresetreq -- 2.39.5