Skip to content

Commit

Permalink
boards/stm32f3discovery: fix openocd config to flash from invalid state
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cladmi committed Sep 11, 2019
1 parent d9b0db0 commit f5f275b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boards/stm32f3discovery/Makefile.include
Expand Up @@ -8,5 +8,9 @@ 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

0 comments on commit f5f275b

Please sign in to comment.