Skip to content

Commit

Permalink
boards/pba-d-01-kw2x: fix flashing from invalid state
Browse files Browse the repository at this point in the history
When in an invalid state, the board could not flash anymore.
Like for example after flashing `tests/driver_adt7310` this makes it
flash again.

I used `reset_config srst_only` as the other kinetis boards are also
configured that way.
  • Loading branch information
cladmi committed Sep 2, 2019
1 parent d9b0db0 commit 94dfc4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boards/pba-d-01-kw2x/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,9 @@ endif
# setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk

# The board can become un-flashable after some firmware, 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
1 change: 1 addition & 0 deletions boards/pba-d-01-kw2x/dist/openocd.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
source [find target/kx.cfg]
reset_config srst_only
$_TARGETNAME configure -rtos auto

0 comments on commit 94dfc4d

Please sign in to comment.