From 39f3501afbf750d08da898317dc22742cc056f43 Mon Sep 17 00:00:00 2001 From: Spencer Oliver Date: Thu, 30 Aug 2012 12:53:34 +0100 Subject: [PATCH] cortex_m: suggest using hardware srst if VECTRESET used If the target does not support SYSRESETREQ we fall back to using VECTRESET. This however does not reset the peripherals and we issue a warning to the user to suggest using a reset-init script. Also suggest that using hardware srst will give them the same functionality as using SYSRESETREQ. Change-Id: Ie1781c4b849fed66c52222e6539735537c879fb3 Signed-off-by: Spencer Oliver Reviewed-on: http://openocd.zylin.com/802 Reviewed-by: Andreas Fritiofson Tested-by: jenkins Reviewed-by: Freddie Chopin --- src/target/cortex_m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/target/cortex_m.c b/src/target/cortex_m.c index 5fa78ca8c..74505a85e 100644 --- a/src/target/cortex_m.c +++ b/src/target/cortex_m.c @@ -1025,7 +1025,7 @@ static int cortex_m3_assert_reset(struct target *target) if (reset_config == CORTEX_M3_RESET_VECTRESET) { LOG_WARNING("Only resetting the Cortex-M3 core, use a reset-init event " - "handler to reset any peripherals"); + "handler to reset any peripherals or configure hardware srst support."); } { -- 2.11.4.GIT