mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #8977 from cladmi/pr/fix/iotlab/openocd
boards/iotlab-m3|a8: fix openocd configuration
This commit is contained in:
commit
fb49884a95
@ -10,6 +10,10 @@ 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'
|
||||
|
||||
# this board uses openocd
|
||||
include $(RIOTMAKE)/tools/openocd.inc.mk
|
||||
|
||||
|
13
boards/iotlab-a8-m3/dist/openocd.cfg
vendored
13
boards/iotlab-a8-m3/dist/openocd.cfg
vendored
@ -1,9 +1,8 @@
|
||||
interface ftdi
|
||||
ftdi_vid_pid 0x0403 0x6010
|
||||
|
||||
ftdi_layout_init 0x0c08 0x0c2b
|
||||
ftdi_layout_signal nTRST -data 0x0800
|
||||
ftdi_layout_signal nSRST -data 0x0400
|
||||
|
||||
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
|
||||
|
||||
$_TARGETNAME configure -rtos auto
|
||||
|
13
boards/iotlab-m3/dist/openocd.cfg
vendored
13
boards/iotlab-m3/dist/openocd.cfg
vendored
@ -1,9 +1,8 @@
|
||||
interface ftdi
|
||||
ftdi_vid_pid 0x0403 0x6010
|
||||
|
||||
ftdi_layout_init 0x0c08 0x0c2b
|
||||
ftdi_layout_signal nTRST -data 0x0800
|
||||
ftdi_layout_signal nSRST -data 0x0400
|
||||
|
||||
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
|
||||
|
||||
$_TARGETNAME configure -rtos auto
|
||||
|
Loading…
Reference in New Issue
Block a user