boards/nucleo: generalize use of connect_assert_srst for flashing

This allows to flash/reset even over a crashed or sleeping firmware
This commit is contained in:
Alexandre Abadie 2019-09-02 21:44:58 +02:00
parent ffd7264497
commit fc923baa42
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -12,6 +12,10 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
# setup serial terminal # setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk 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 # all Nucleo boards have an on-board ST-link adapter
DEBUG_ADAPTER ?= stlink DEBUG_ADAPTER ?= stlink