diff --git a/boards/b-l072z-lrwan1/Makefile.include b/boards/b-l072z-lrwan1/Makefile.include index e4a0c43e56..4d4531fcd9 100644 --- a/boards/b-l072z-lrwan1/Makefile.include +++ b/boards/b-l072z-lrwan1/Makefile.include @@ -11,8 +11,9 @@ include $(RIOTMAKE)/tools/serial.inc.mk # this board has an on-board ST-link adapter DEBUG_ADAPTER ?= stlink -# call a 'reset halt' command before starting the debugger -export OPENOCD_DBG_START_CMD = -c 'reset halt' +# this board can become un-flashable after a hardfault, +# 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 diff --git a/boards/i-nucleo-lrwan1/Makefile.include b/boards/i-nucleo-lrwan1/Makefile.include index e2b9138636..02d5c8c0ca 100644 --- a/boards/i-nucleo-lrwan1/Makefile.include +++ b/boards/i-nucleo-lrwan1/Makefile.include @@ -11,8 +11,9 @@ include $(RIOTMAKE)/tools/serial.inc.mk # to flash this board, use an ST-link adapter DEBUG_ADAPTER ?= stlink -# call a 'reset halt' command before starting the debugger -export OPENOCD_DBG_START_CMD = -c 'reset halt' +# this board 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 # this board uses openocd include $(RIOTMAKE)/tools/openocd.inc.mk diff --git a/boards/lsn50/Makefile.include b/boards/lsn50/Makefile.include index 3cb4ee060e..d05c0d3417 100644 --- a/boards/lsn50/Makefile.include +++ b/boards/lsn50/Makefile.include @@ -11,8 +11,9 @@ include $(RIOTMAKE)/tools/serial.inc.mk # By default, flash this board using an ST-link adapter DEBUG_ADAPTER ?= stlink -# call a 'reset halt' command before starting the debugger -export OPENOCD_DBG_START_CMD = -c 'reset halt' +# this board 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 # this board uses openocd include $(RIOTMAKE)/tools/openocd.inc.mk