Merge pull request #12153 from cladmi/pr/iotlab/use_openocd_reset_use_connect_assert_srst

boards/iotlab: rely on OPENOCD_RESET_USE_CONNECT_ASSERT_SRST
This commit is contained in:
Alexandre Abadie 2019-09-10 08:41:08 +02:00 committed by GitHub
commit b80a41f28f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 7 deletions

View File

@ -6,9 +6,8 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbserial*B)))
export BAUD = 500000
include $(RIOTMAKE)/tools/serial.inc.mk
# call a 'reset halt' command before starting the debugger
# it is required as `connect_assert_srst` is set
export OPENOCD_DBG_START_CMD = -c 'reset halt'
# Using connect_assert_srst removes errors on flash from invalid state
export OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1
# this board uses openocd
include $(RIOTMAKE)/tools/openocd.inc.mk

View File

@ -2,7 +2,6 @@ source [find interface/ftdi/iotlab-usb.cfg]
source [find target/stm32f1x.cfg]
# use combined on interfaces or targets that can't set TRST/SRST separately
# Using connect_assert_srst removes errors on first flash
reset_config trst_and_srst connect_assert_srst
reset_config trst_and_srst
$_TARGETNAME configure -rtos auto

View File

@ -2,7 +2,6 @@ source [find interface/ftdi/iotlab-usb.cfg]
source [find target/stm32f1x.cfg]
# use combined on interfaces or targets that can't set TRST/SRST separately
# Using connect_assert_srst removes errors on first flash
reset_config trst_and_srst connect_assert_srst
reset_config trst_and_srst
$_TARGETNAME configure -rtos auto