From 7c9ef1e9e023d2deb55a5c787ec1326a90a94a4a Mon Sep 17 00:00:00 2001 From: MrKevinWeiss Date: Wed, 7 Nov 2018 13:53:23 +0100 Subject: [PATCH] boards/stm32l0: Fix openocd to prevent flash locking This commit add the connect_assert_srst which requires the SRST to be asserted before trying to connect. Certain firmwares will cause it to get to a state where flashing fails and the reset button must be pushed at the correct time to recover. --- boards/b-l072z-lrwan1/dist/openocd.cfg | 5 ----- boards/common/stm32/dist/stm32l0.cfg | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) delete mode 100644 boards/b-l072z-lrwan1/dist/openocd.cfg diff --git a/boards/b-l072z-lrwan1/dist/openocd.cfg b/boards/b-l072z-lrwan1/dist/openocd.cfg deleted file mode 100644 index 9ea6fcfc50..0000000000 --- a/boards/b-l072z-lrwan1/dist/openocd.cfg +++ /dev/null @@ -1,5 +0,0 @@ -source [find target/stm32l0.cfg] - -reset_config srst_only connect_assert_srst - -$_TARGETNAME configure -rtos auto diff --git a/boards/common/stm32/dist/stm32l0.cfg b/boards/common/stm32/dist/stm32l0.cfg index 13fea1b4a9..cb08afc6ad 100644 --- a/boards/common/stm32/dist/stm32l0.cfg +++ b/boards/common/stm32/dist/stm32l0.cfg @@ -1,3 +1,3 @@ source [find target/stm32l0.cfg] -reset_config srst_only +reset_config srst_only connect_assert_srst $_TARGETNAME configure -rtos auto