boards/iotlab: rely on OPENOCD_RESET_USE_CONNECT_ASSERT_SRST
Use the new OPENOCD_RESET_USE_CONNECT_ASSERT_SRST to configure 'reset_config connect_assert_srst' when flashing and resetting only. This removes the need for a special debug configuration and should allow connecting to a running target again.
This commit is contained in:
parent
d9b0db0d61
commit
c1b32fe1f3
@ -6,9 +6,8 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbserial*B)))
|
|||||||
export BAUD = 500000
|
export BAUD = 500000
|
||||||
include $(RIOTMAKE)/tools/serial.inc.mk
|
include $(RIOTMAKE)/tools/serial.inc.mk
|
||||||
|
|
||||||
# call a 'reset halt' command before starting the debugger
|
# Using connect_assert_srst removes errors on flash from invalid state
|
||||||
# it is required as `connect_assert_srst` is set
|
export OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1
|
||||||
export OPENOCD_DBG_START_CMD = -c 'reset halt'
|
|
||||||
|
|
||||||
# this board uses openocd
|
# this board uses openocd
|
||||||
include $(RIOTMAKE)/tools/openocd.inc.mk
|
include $(RIOTMAKE)/tools/openocd.inc.mk
|
||||||
|
|||||||
3
boards/iotlab-a8-m3/dist/openocd.cfg
vendored
3
boards/iotlab-a8-m3/dist/openocd.cfg
vendored
@ -2,7 +2,6 @@ source [find interface/ftdi/iotlab-usb.cfg]
|
|||||||
source [find target/stm32f1x.cfg]
|
source [find target/stm32f1x.cfg]
|
||||||
|
|
||||||
# use combined on interfaces or targets that can't set TRST/SRST separately
|
# 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
|
||||||
reset_config trst_and_srst connect_assert_srst
|
|
||||||
|
|
||||||
$_TARGETNAME configure -rtos auto
|
$_TARGETNAME configure -rtos auto
|
||||||
|
|||||||
3
boards/iotlab-m3/dist/openocd.cfg
vendored
3
boards/iotlab-m3/dist/openocd.cfg
vendored
@ -2,7 +2,6 @@ source [find interface/ftdi/iotlab-usb.cfg]
|
|||||||
source [find target/stm32f1x.cfg]
|
source [find target/stm32f1x.cfg]
|
||||||
|
|
||||||
# use combined on interfaces or targets that can't set TRST/SRST separately
|
# 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
|
||||||
reset_config trst_and_srst connect_assert_srst
|
|
||||||
|
|
||||||
$_TARGETNAME configure -rtos auto
|
$_TARGETNAME configure -rtos auto
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user