From 0ac6c0d1a8ff35d2022f11fd0ab057c82c12157b Mon Sep 17 00:00:00 2001 From: Spencer Oliver Date: Thu, 2 Dec 2010 13:12:48 +0000 Subject: 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 --- tcl/target/stm32.cfg | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tcl/target') 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 -- cgit v1.2.3