From caeb05720595287e9a9865ff5f9e764c92be152d Mon Sep 17 00:00:00 2001 From: Freddie Chopin Date: Tue, 1 May 2012 19:47:28 +0200 Subject: [PATCH] Use hardware reset and connect under reset on boards with ST-LINK/V2, as now it is supported. Change-Id: Id3b2ca9a2270974a5f453323f9057ecece400c94 Signed-off-by: Freddie Chopin Reviewed-on: http://openocd.zylin.com/609 Tested-by: jenkins Reviewed-by: Spencer Oliver --- tcl/board/stm320518_eval_stlink.cfg | 3 +++ tcl/board/stm3220g_eval_stlink.cfg | 3 +++ tcl/board/stm3241g_eval_stlink.cfg | 3 +++ tcl/board/stm32f0discovery.cfg | 3 +++ tcl/board/stm32f4discovery.cfg | 3 +++ tcl/board/stm32ldiscovery.cfg | 3 +++ 6 files changed, 18 insertions(+) diff --git a/tcl/board/stm320518_eval_stlink.cfg b/tcl/board/stm320518_eval_stlink.cfg index a832984d0..804ff2c39 100644 --- a/tcl/board/stm320518_eval_stlink.cfg +++ b/tcl/board/stm320518_eval_stlink.cfg @@ -13,3 +13,6 @@ set WORKAREASIZE 0x2000 set CHIPNAME STM32F051R8T6 source [find target/stm32f0x_stlink.cfg] + +# use hardware reset, connect under reset +reset_config srst_only srst_nogate diff --git a/tcl/board/stm3220g_eval_stlink.cfg b/tcl/board/stm3220g_eval_stlink.cfg index 6ac3751f1..578a0e8a7 100644 --- a/tcl/board/stm3220g_eval_stlink.cfg +++ b/tcl/board/stm3220g_eval_stlink.cfg @@ -13,3 +13,6 @@ set WORKAREASIZE 0x20000 set CHIPNAME STM32F207IGH6 source [find target/stm32f2x_stlink.cfg] + +# use hardware reset, connect under reset +reset_config srst_only srst_nogate diff --git a/tcl/board/stm3241g_eval_stlink.cfg b/tcl/board/stm3241g_eval_stlink.cfg index d17cdd935..4e3beb925 100644 --- a/tcl/board/stm3241g_eval_stlink.cfg +++ b/tcl/board/stm3241g_eval_stlink.cfg @@ -13,3 +13,6 @@ set WORKAREASIZE 0x20000 set CHIPNAME STM32F417IGH6 source [find target/stm32f4x_stlink.cfg] + +# use hardware reset, connect under reset +reset_config srst_only srst_nogate diff --git a/tcl/board/stm32f0discovery.cfg b/tcl/board/stm32f0discovery.cfg index 392a6e6ff..678eea68c 100644 --- a/tcl/board/stm32f0discovery.cfg +++ b/tcl/board/stm32f0discovery.cfg @@ -5,3 +5,6 @@ source [find interface/stlink-v2.cfg] set WORKAREASIZE 0x2000 source [find target/stm32f0x_stlink.cfg] + +# use hardware reset, connect under reset +reset_config srst_only srst_nogate diff --git a/tcl/board/stm32f4discovery.cfg b/tcl/board/stm32f4discovery.cfg index 98125e171..ae54e18c4 100644 --- a/tcl/board/stm32f4discovery.cfg +++ b/tcl/board/stm32f4discovery.cfg @@ -4,3 +4,6 @@ source [find interface/stlink-v2.cfg] source [find target/stm32f4x_stlink.cfg] + +# use hardware reset, connect under reset +reset_config srst_only srst_nogate diff --git a/tcl/board/stm32ldiscovery.cfg b/tcl/board/stm32ldiscovery.cfg index 9f4707311..a8eac815e 100644 --- a/tcl/board/stm32ldiscovery.cfg +++ b/tcl/board/stm32ldiscovery.cfg @@ -4,3 +4,6 @@ source [find interface/stlink-v2.cfg] source [find target/stm32lx_stlink.cfg] + +# use hardware reset, connect under reset +reset_config srst_only srst_nogate