From 323050f0e33c5b1cc1cfd0ae08aaf06fca590260 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= Date: Mon, 4 Mar 2019 14:31:41 +0100 Subject: [PATCH] boards/frdm: fix flashing from invalid state 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. --- boards/common/frdm/Makefile.include | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boards/common/frdm/Makefile.include b/boards/common/frdm/Makefile.include index 1c496ef7bd68..1424275491e2 100644 --- a/boards/common/frdm/Makefile.include +++ b/boards/common/frdm/Makefile.include @@ -34,5 +34,9 @@ export PRE_FLASH_CHECK_SCRIPT = $(RIOTCPU)/$(CPU)/dist/check-fcfield.sh # setup serial terminal include $(RIOTMAKE)/tools/serial.inc.mk +# 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