From fc923baa4222dc880e5e18aa87b7730552720af0 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Mon, 2 Sep 2019 21:44:58 +0200 Subject: [PATCH] boards/nucleo: generalize use of connect_assert_srst for flashing This allows to flash/reset even over a crashed or sleeping firmware --- boards/common/nucleo/Makefile.include | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boards/common/nucleo/Makefile.include b/boards/common/nucleo/Makefile.include index 34cc7539a8..21397cfefe 100644 --- a/boards/common/nucleo/Makefile.include +++ b/boards/common/nucleo/Makefile.include @@ -12,6 +12,10 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*))) # setup serial terminal include $(RIOTMAKE)/tools/serial.inc.mk +# nucleo boards can become un-flashable after a hardfault, +# use connect_assert_srst to always be able to flash or reset the boards. +export OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1 + # all Nucleo boards have an on-board ST-link adapter DEBUG_ADAPTER ?= stlink