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