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:
parent
ffd7264497
commit
fc923baa42
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user