From fbc8d4add538ae94f395dd3143855239d3d0c24f Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Tue, 8 Dec 2020 22:28:47 +0100 Subject: [PATCH] boards/stm32l476g-disco: use connect_assert_srst with openocd --- boards/stm32l476g-disco/Makefile.include | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boards/stm32l476g-disco/Makefile.include b/boards/stm32l476g-disco/Makefile.include index 988ecea6ea..937ff089b8 100644 --- a/boards/stm32l476g-disco/Makefile.include +++ b/boards/stm32l476g-disco/Makefile.include @@ -4,3 +4,7 @@ INCLUDES += -I$(RIOTBOARD)/common/stm32/include # this board uses openocd with st-link PROGRAMMER ?= openocd DEBUG_ADAPTER ?= stlink + +# This board can become un-flashable after a hardfault, +# use connect_assert_srst to always be able to flash or reset the board. +OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1