From f5f275b929b98a03378848704c7ab45ce99036be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= Date: Mon, 25 Feb 2019 14:41:38 +0100 Subject: [PATCH] boards/stm32f3discovery: fix openocd config to flash from invalid state When flashing some applications the flasher sometimes gets stuck which prevents flashing after. It may be from a specific firmware or operation but do not have one yet. Connect with reset asserted fix flashing from this state. It was found after the `stm32f3discovery` get stuck in a non-flashable mode after some firmwares. --- boards/stm32f3discovery/Makefile.include | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boards/stm32f3discovery/Makefile.include b/boards/stm32f3discovery/Makefile.include index 8458a10af38c..8db56d3fcafd 100644 --- a/boards/stm32f3discovery/Makefile.include +++ b/boards/stm32f3discovery/Makefile.include @@ -8,5 +8,9 @@ include $(RIOTMAKE)/tools/serial.inc.mk DEBUG_ADAPTER ?= stlink STLINK_VERSION ?= 2 +# The board can become un-flashable after some execution, +# use connect_assert_srst to always be able to flash or reset the board. +export OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1 + # this board uses openocd include $(RIOTMAKE)/tools/openocd.inc.mk