mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #13168 from fjmolinas/pr_iotlab_openocd
boards/iotlab: add DEBUG_ADAPTER_ID openocd
This commit is contained in:
commit
d6264f56c8
@ -9,6 +9,10 @@ include $(RIOTMAKE)/tools/serial.inc.mk
|
||||
# Using connect_assert_srst removes errors on flash from invalid state
|
||||
export OPENOCD_RESET_USE_CONNECT_ASSERT_SRST ?= 1
|
||||
|
||||
DEBUG_ADAPTER ?= iotlab
|
||||
|
||||
export OPENOCD_CONFIG ?= $(RIOTBOARD)/common/iotlab/dist/openocd.cfg
|
||||
|
||||
# this board uses openocd
|
||||
include $(RIOTMAKE)/tools/openocd.inc.mk
|
||||
|
||||
|
7
boards/iotlab-m3/dist/openocd.cfg
vendored
7
boards/iotlab-m3/dist/openocd.cfg
vendored
@ -1,7 +0,0 @@
|
||||
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
|
||||
reset_config trst_and_srst
|
||||
|
||||
$_TARGETNAME configure -rtos auto
|
8
makefiles/tools/openocd-adapters/iotlab.inc.mk
Normal file
8
makefiles/tools/openocd-adapters/iotlab.inc.mk
Normal file
@ -0,0 +1,8 @@
|
||||
# iotlab-usb debug adapter
|
||||
OPENOCD_ADAPTER_INIT ?= -c 'source [find interface/ftdi/iotlab-usb.cfg]'
|
||||
|
||||
# Add serial matching command, only if DEBUG_ADAPTER_ID was specified
|
||||
ifneq (,$(DEBUG_ADAPTER_ID))
|
||||
OPENOCD_ADAPTER_INIT += -c 'ftdi_serial $(DEBUG_ADAPTER_ID)'
|
||||
endif
|
||||
export OPENOCD_ADAPTER_INIT
|
Loading…
Reference in New Issue
Block a user