From 06c830e8cda61e4f25f2dd2ff692be972726f087 Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Mon, 2 Sep 2019 14:16:04 +0200 Subject: [PATCH] boards/nucleo-f091rc: set OPENOCD_RESET_USE_CONNECT_ASSERT_SRST - Nucleo-f091rc can become unflashable when hardfaults occure. To make sure flashing succeeds `connect_assert_srst` is called before connecting to flash threw openocd. --- boards/nucleo-f091rc/Makefile.include | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/boards/nucleo-f091rc/Makefile.include b/boards/nucleo-f091rc/Makefile.include index 8db8eaed90..d01fb044ac 100644 --- a/boards/nucleo-f091rc/Makefile.include +++ b/boards/nucleo-f091rc/Makefile.include @@ -1,2 +1,6 @@ +# nucleo-f091rc 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 + # load the common Makefile.include for Nucleo boards include $(RIOTBOARD)/common/nucleo64/Makefile.include