Skip to content

Commit

Permalink
boards/b-l475e-iot01a: set OPENOCD_RESET_USE_CONNECT_ASSERT_SRST
Browse files Browse the repository at this point in the history
b-l475e-iot01a can become unflashable when hardfaults occure.
To make sure flashing succeeds `connect_assert_srst` is called
before connecting to flash through openocd.
  • Loading branch information
fjmolinas committed Dec 19, 2019
1 parent 26a1348 commit b4a8cf8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boards/b-l475e-iot01a/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,9 @@ include $(RIOTMAKE)/tools/serial.inc.mk
# this board has an on-board ST-link adapter
DEBUG_ADAPTER ?= stlink

# 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

0 comments on commit b4a8cf8

Please sign in to comment.