mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
f5f275b929
When flashing some applications the flasher sometimes gets stuck which prevents flashing after. It may be from a specific firmware or operation but do not have one yet. Connect with reset asserted fix flashing from this state. It was found after the `stm32f3discovery` get stuck in a non-flashable mode after some firmwares.
17 lines
511 B
Makefile
17 lines
511 B
Makefile
# define the default port depending on the host OS
|
|
PORT_LINUX ?= /dev/ttyUSB0
|
|
PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
|
|
|
# setup serial terminal
|
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
|
|
|
DEBUG_ADAPTER ?= stlink
|
|
STLINK_VERSION ?= 2
|
|
|
|
# The board can become un-flashable after some execution,
|
|
# 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
|