1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards: Separate boards from debug adapter configuration

This commit is contained in:
Joakim Nohlgård 2017-10-06 14:59:07 +02:00
parent 697f0b00f3
commit f4e9cad85a
82 changed files with 197 additions and 406 deletions

View File

@ -9,5 +9,8 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk
export DEBUG_ADAPTER ?= stlink
export STLINK_VERSION ?= 2
# this board uses openocd
include $(RIOTMAKE)/tools/openocd.inc.mk

View File

@ -1,6 +1,3 @@
source [find interface/stlink-v2.cfg]
transport select hla_swd
set WORKAREASIZE 0x4000
source [find target/nrf51.cfg]
$_TARGETNAME configure -rtos auto

View File

@ -1,7 +1 @@
source [find interface/cmsis-dap.cfg]
set CHIPNAME at91samd21g18
set ENDIAN little
set telnet_port 0
source [find target/at91samdXX.cfg]

View File

@ -9,5 +9,8 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
# setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk
export DEBUG_ADAPTER ?= stlink
export STLINK_VERSION ?= 2-1
# this board uses openocd
include $(RIOTMAKE)/tools/openocd.inc.mk

View File

@ -1,7 +1,3 @@
source [find interface/stlink-v2-1.cfg]
transport select hla_swd
source [find target/stm32l0.cfg]
reset_config srst_only

View File

@ -26,5 +26,8 @@ ifeq ($(PROGRAMMER),dfu-util)
export FFLAGS = -d 1d50:6017 -s 0x08002000:leave -D "$(HEXFILE)"
else
# this board uses openocd by default
export DEBUG_ADAPTER ?= stlink
export STLINK_VERSION ?= 2
include $(RIOTMAKE)/tools/openocd.inc.mk
endif

View File

@ -1,6 +1,3 @@
source [find interface/stlink-v2.cfg]
transport select hla_swd
source [find target/stm32f1x.cfg]
reset_config none separate

View File

@ -4,8 +4,8 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
# Use the shared OpenOCD configuration
# Using dap or jlink depends on which firmware the OpenSDA debugger is running
export FRDM_IFACE ?= dap
#export FRDM_IFACE ?= jlink
export DEBUG_ADAPTER ?= dap
#export DEBUG_ADAPTER ?= jlink
# OpenOCD v0.10.0 and newer have built-in support for disabling the Kinetis
# watchdog automatically. However, current stable releases of Ubuntu and Debian
@ -29,11 +29,11 @@ flash: $(RIOTCPU)/$(CPU)/dist/wdog-disable.bin
# Reset the default goal.
.DEFAULT_GOAL :=
export OPENOCD_CONFIG ?= $(RIOTBOARD)/frdm-common/dist/old-openocd-$(FRDM_IFACE)-$(CPU_FAMILY).cfg
export OPENOCD_CONFIG ?= $(RIOTBOARD)/frdm-common/dist/old-openocd-$(CPU_FAMILY).cfg
endif
# Configuration for OpenOCD v0.10.0 and newer
export OPENOCD_CONFIG ?= $(RIOTBOARD)/frdm-common/dist/openocd-$(FRDM_IFACE)-$(CPU_FAMILY).cfg
export OPENOCD_CONFIG ?= $(RIOTBOARD)/frdm-common/dist/openocd-$(CPU_FAMILY).cfg
# Check the flash configuration field before flashing
export PRE_FLASH_CHECK_SCRIPT = $(RIOTCPU)/$(CPU)/dist/check-fcfield-elf.sh

View File

@ -1,48 +0,0 @@
#
# Freescale Kinetis Kxx devices on a Segger J-Link adapter
#
source [find interface/jlink.cfg]
source [find target/swj-dp.tcl]
if { [info exists CHIPNAME] } {
set _CHIPNAME $CHIPNAME
} else {
set _CHIPNAME kx
}
if { [info exists CPUTAPID] } {
set _CPUTAPID $CPUTAPID
} else {
set _CPUTAPID 0x2ba01477
}
set _TARGETNAME $_CHIPNAME.cpu
swj_newdap $_CHIPNAME cpu -irlen 4 -expected-id $_CPUTAPID
target create $_TARGETNAME cortex_m -chain-position $_CHIPNAME.cpu
$_CHIPNAME.cpu configure -event examine-start { puts "START..." ; }
# It is important that "kinetis mdm check_security" is called for
# 'examine-end' event and not 'eximine-start'. Calling it in 'examine-start'
# causes "kinetis mdm check_security" to fail the first time openocd
# calls it when it tries to connect after the CPU has been power-cycled.
$_CHIPNAME.cpu configure -event examine-end {
kinetis mdm check_security
}
$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size 0x1000 -work-area-backup 0
flash bank $_CHIPNAME.flash kinetis 0 0 0 0 $_TARGETNAME
cortex_m reset_config sysresetreq
#reset_config srst_only srst_nogate connect_assert_srst
adapter_khz 1000
$_TARGETNAME configure -event gdb-attach {
halt
}
$_TARGETNAME configure -rtos auto

View File

@ -1,8 +1,6 @@
#
# Freescale Kinetis Kxx devices on a CMSIS-DAP adapter
# Freescale Kinetis Kxx devices when using old OpenOCD versions (<0.10.0)
#
source [find interface/cmsis-dap.cfg]
source [find target/swj-dp.tcl]
if { [info exists CHIPNAME] } {

View File

@ -1,22 +0,0 @@
#
# NXP Kinetis Freedom developer board
#
# OpenSDA is the on-board debugger, some boards have a CMSIS-DAP compatible
# interface, other boards comes pre-flashed with a Segger J-Link compatible
# firmware. The OpenSDA controller can be re-flashed to provide either of the two.
# Both interfaces work with OpenOCD, but we need to tell which one we have on
# our debugger.
# J-Link compatible firmware binaries for OpenSDA can be found at:
# https://www.segger.com/downloads/jlink#JLinkOpenSDABoardSpecificFirmwares
source [find interface/jlink.cfg]
# Kinetis K series CPUs
source [find target/kx.cfg]
reset_config srst_only
$_TARGETNAME configure -event gdb-attach {
halt
}
$_TARGETNAME configure -rtos auto

View File

@ -9,7 +9,6 @@
# CMSIS-DAP (DAPLink) compatible OpenSDA firmware binary images can be found at:
# http://www.nxp.com/opensda
source [find interface/cmsis-dap.cfg]
# Kinetis K series CPUs
source [find target/kx.cfg]

View File

@ -9,5 +9,8 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk
export DEBUG_ADAPTER ?= stlink
export STLINK_VERSION ?= 2
# this board uses openocd
include $(RIOTMAKE)/tools/openocd.inc.mk

View File

@ -1,6 +1,3 @@
source [find interface/stlink-v2.cfg]
transport select hla_swd
set WORKAREASIZE 0x2800
source [find target/stm32l1.cfg]
$_TARGETNAME configure -rtos auto

View File

@ -9,5 +9,8 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk
export DEBUG_ADAPTER ?= stlink
export STLINK_VERSION ?= 2-1
# this board uses openocd
include $(RIOTMAKE)/tools/openocd.inc.mk

View File

@ -1,7 +1,3 @@
source [find interface/stlink-v2-1.cfg]
transport select hla_swd
source [find target/stm32f1x.cfg]
reset_config srst_only

View File

@ -9,5 +9,8 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk
export DEBUG_ADAPTER ?= stlink
export STLINK_VERSION ?= 2
# this board uses openocd
include $(RIOTMAKE)/tools/openocd.inc.mk

View File

@ -1,2 +1,7 @@
source [find board/stm32f4discovery.cfg]
# increase working area to 64KB
set WORKAREASIZE 0x10000
source [find target/stm32f4x.cfg]
reset_config srst_only
$_TARGETNAME configure -rtos auto

View File

@ -1,9 +1,6 @@
# define the cpu used by the Mulle board
export CPU = kinetis
# Default GDB port
export GDBPORT ?= 3333
# MULLE_SERIAL is used to select which specific Mulle board we are compiling for.
ifdef MULLE_SERIAL
CFLAGS += -DMULLE_SERIAL=$(MULLE_SERIAL)
@ -22,53 +19,26 @@ endif
export CPU_MODEL
# OpenOCD settings for Mulle board.
# Try to determine which version of the OpenOCD config file we should use.
# Specify PROGRAMMER_VERSION or PROGRAMMER_SERIAL to choose a specific programmer board.
ifeq ($(PROGRAMMER_VERSION),)
ifneq ($(PROGRAMMER_SERIAL),)
# Makefile-way of comparing numbers, using lexicographical sorting since we don't have any arithmetic comparisons.
# Programmers with serial 100 -- 148 are version 0.60
# Programmers with serial 301 -- 330 are version 0.70
ifeq "100" "$(word 1, $(sort 100 $(PROGRAMMER_SERIAL)))"
# >= 100
ifneq "149" "$(word 1, $(sort 149 $(PROGRAMMER_SERIAL)))"
# < 149
PROGRAMMER_VERSION = 0.60
else
# >= 149
PROGRAMMER_VERSION = 0.70
endif
endif
endif
# Default to version 0.70 programmer
PROGRAMMER_VERSION ?= 0.70
endif
export OPENOCD_CONFIG = $(RIOTBOARD)/$(BOARD)/dist/openocd/mulle-programmer-$(PROGRAMMER_VERSION).conf
# Add serial matching command
ifneq ($(PROGRAMMER_SERIAL),)
OPENOCD_EXTRA_INIT += -c 'ftdi_serial $(PROGRAMMER_SERIAL)'
endif
OPENOCD_EXTRA_INIT += $(CPU_OOCD_FLAGS)
# Default debug adapter choice is to use the Mulle programmer board
export DEBUG_ADAPTER ?= mulle
# Host OS name
OS := $(shell uname)
# Fall back to PROGRAMMER_SERIAL for backwards compatibility
export DEBUG_ADAPTER_ID ?= $(PROGRAMMER_SERIAL)
ifeq ($(PORT),)
# try to find tty name by serial number, only works on Linux currently.
ifeq ($(OS),Linux)
ifneq ($(PROGRAMMER_SERIAL),)
PORT := $(firstword $(shell $(RIOTBASE)/dist/tools/usb-serial/find-tty.sh '^$(PROGRAMMER_SERIAL)$$'))
ifneq ($(DEBUG_ADAPTER_ID),)
PORT := $(firstword $(shell $(RIOTBASE)/dist/tools/usb-serial/find-tty.sh '^$(DEBUG_ADAPTER_ID)$$'))
else
# find-tty.sh will return the first USB tty if no serial is given.
PORT := $(firstword $(shell $(RIOTBASE)/dist/tools/usb-serial/find-tty.sh))
endif
else ifeq ($(OS),Darwin)
ifneq ($(PROGRAMMER_SERIAL),)
PORT := /dev/tty.usbserial-$(PROGRAMMER_SERIAL)B
ifneq ($(DEBUG_ADAPTER_ID),)
PORT := /dev/tty.usbserial-$(DEBUG_ADAPTER_ID)B
else
PORT := $(firstword $(sort $(wildcard /dev/tty.usbserial*)))
endif
@ -86,7 +56,6 @@ endif
export OPENOCD_PRE_VERIFY_CMDS += \
-c 'load_image $(RIOTCPU)/$(CPU)/dist/wdog-disable.bin 0x20000000 bin' \
-c 'resume 0x20000000'
export OPENOCD_EXTRA_INIT
export PRE_FLASH_CHECK_SCRIPT = $(RIOTCPU)/$(CPU)/dist/check-fcfield-elf.sh
.PHONY: flash

12
boards/mulle/dist/openocd.cfg vendored Normal file
View File

@ -0,0 +1,12 @@
# Copyright 2017 Eistec AB
#
# OpenOCD configuration for Eistec Mulle board with Kinetis K MCU
#
source [find target/kx.cfg]
# The nTRST functionality can only be used if the MCU has been configured by
# setting the correct pin multiplexing function on the TRST pin (PTA5 on Kinetis K60).
# If you have configured the TRST pin correctly you can change srst_only to
# trst_and_srst
reset_config srst_only

View File

@ -0,0 +1,28 @@
#
# Mulle programmer board v0.60
#
# The Mulle programming board uses a FTDI FT2232H chip for USB UART and JTAG
# combined functionality.
#
# Reduce this if you are having problems with losing connection to the Mulle
adapter_khz 1000
# JTAG interface configuration
interface ftdi
ftdi_device_desc "Mulle Programmer v0.60"
ftdi_vid_pid 0x0403 0x6010
ftdi_channel 1
ftdi_layout_init 0x0008 0x005b
# These are the pins that are used for SRST and TRST. Note that the Mulle
# programming board inverts the reset signal between the FTDI chip and the MCU,
# so we need to use -ndata here to tell OpenOCD that the signals are active HIGH.
ftdi_layout_signal nTRST -ndata 0x0010
ftdi_layout_signal nSRST -ndata 0x0040
# In the eyes of OpenOCD, the reset signal is push-pull, because of the hardware
# design however, it is actually open drain.
reset_config srst_push_pull

View File

@ -1,65 +0,0 @@
#
# Mulle programming board.
#
# The Mulle programming board uses a FTDI FT2232H chip for USB UART and JTAG
# combined functionality.
#
# Reduce this if you are having problems with losing connection to the Mulle
adapter_khz 1000
# JTAG interface configuration
interface ftdi
ftdi_device_desc "Mulle Programmer v0.60"
ftdi_vid_pid 0x0403 0x6010
ftdi_channel 1
ftdi_layout_init 0x0008 0x005b
# These are the pins that are used for SRST and TRST. Note that the Mulle
# programming board inverts the reset signal between the FTDI chip and the MCU,
# so we need to use -ndata here to tell OpenOCD that the signals are active HIGH.
ftdi_layout_signal nTRST -ndata 0x0010
ftdi_layout_signal nSRST -ndata 0x0040
# In the eyes of OpenOCD, the reset signal is push-pull, because of the hardware
# design however, it is actually open drain.
# The trst pin can only be used if the MCU has been configured by setting the
# correct pin multiplexing function on the TRST pin (PTA5).
# If you have configured the TRST pin correctly you can change srst_only to
# trst_and_srst
reset_config srst_only srst_push_pull srst_gates_jtag
# MCU
gdb_memory_map enable
gdb_flash_program enable
source [find target/k60.cfg]
#
# Bank definition for the 'program flash' (instructions and/or data)
# OpenOCD 0.9.0 has a definition of the first flash bank in target/kx.cfg, but
# not OpenOCD 0.8.0 and earlier.
#
catch {flash bank $_CHIPNAME.flash kinetis 0 0 0 0 $_TARGETNAME}
catch {flash bank $_CHIPNAME.flash2 kinetis 0 0 0 0 $_TARGETNAME}
# Work-area is a space in RAM used for flash programming
# By default use 4 kB
if { [info exists WORKAREASIZE] } {
set _WORKAREASIZE $WORKAREASIZE
} else {
set _WORKAREASIZE 0x1000
}
$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
# The following section makes new gdb connections cause the MCU to do a system
# reset, in order to be in a known state.
# Comment this out in order to be able to debug an already started program.
$_TARGETNAME configure -event gdb-attach {
echo "Resetting because of gdb-attach event..."
# To make flash probe and gdb load to flash work we need a reset init.
reset init
}

View File

@ -0,0 +1,27 @@
#
# Mulle programmer board v0.70
#
# The Mulle programming board uses a FTDI FT2232H chip for USB UART and JTAG
# combined functionality.
#
# Reduce this if you are having problems with losing connection to the Mulle
adapter_khz 1000
# JTAG interface configuration
interface ftdi
ftdi_device_desc "Mulle Programmer v0.70"
ftdi_vid_pid 0x0403 0x6010
ftdi_channel 1
ftdi_layout_init 0x0008 0x005b
# These are the pins that are used for SRST and TRST. Active low on programmer
# boards v0.70 and up (used to be active high on v0.60)
ftdi_layout_signal nTRST -data 0x0010
ftdi_layout_signal nSRST -data 0x0040
# In the eyes of OpenOCD, the reset signal is push-pull, because of the hardware
# design however, it is actually open drain.
reset_config srst_push_pull

View File

@ -1,63 +0,0 @@
#
# Mulle programming board.
#
# The Mulle programming board uses a FTDI FT2232H chip for USB UART and JTAG
# combined functionality.
#
# Reduce this if you are having problems with losing connection to the Mulle
adapter_khz 1000
# JTAG interface configuration
interface ftdi
ftdi_device_desc "Mulle Programmer v0.70"
ftdi_vid_pid 0x0403 0x6010
ftdi_channel 1
ftdi_layout_init 0x0008 0x005b
# These are the pins that are used for SRST and TRST. Active LOW on programmer
# boards v0.70 and up (used to be active HIGH)
ftdi_layout_signal nTRST -data 0x0010
ftdi_layout_signal nSRST -data 0x0040
# In the eyes of OpenOCD, the reset signal is push-pull, because of the hardware
# design however, it is actually open drain.
# The trst pin can only be used if the MCU has been configured by setting the
# correct pin multiplexing function on the TRST pin (PTA5).
# If you have configured the TRST pin correctly you can change srst_only to
# trst_and_srst
reset_config srst_only srst_push_pull srst_gates_jtag
# MCU
gdb_memory_map enable
gdb_flash_program enable
source [find target/k60.cfg]
#
# Bank definition for the 'program flash' (instructions and/or data)
# OpenOCD 0.9.0 has a definition of the first flash bank in target/kx.cfg, but
# not OpenOCD 0.8.0 and earlier.
#
catch {flash bank $_CHIPNAME.flash kinetis 0 0 0 0 $_TARGETNAME}
# Work-area is a space in RAM used for flash programming
# By default use 4 kB
if { [info exists WORKAREASIZE] } {
set _WORKAREASIZE $WORKAREASIZE
} else {
set _WORKAREASIZE 0x1000
}
$_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size $_WORKAREASIZE -work-area-backup 0
# The following section makes new gdb connections cause the MCU to do a system
# reset, in order to be in a known state.
# Comment this out in order to be able to debug an already started program.
$_TARGETNAME configure -event gdb-attach {
echo "Resetting because of gdb-attach event..."
# To make flash probe and gdb load to flash work we need a reset init.
reset init
}

View File

@ -5,5 +5,32 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
# setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk
# All Nucleo boards have an on-board ST-link v2-1 adapter
export DEBUG_ADAPTER ?= stlink
export STLINK_VERSION ?= 2-1
# Choose OpenOCD board configuration depending on CPU type
ifeq (,$(OPENOCD_CONFIG))
ifeq ($(CPU),stm32f0)
export OPENOCD_CONFIG := $(RIOTBOARD)/nucleo-common/dist/openocd-f0.cfg
else ifeq ($(CPU),stm32f1)
export OPENOCD_CONFIG := $(RIOTBOARD)/nucleo-common/dist/openocd-f1.cfg
else ifeq ($(CPU),stm32f2)
export OPENOCD_CONFIG := $(RIOTBOARD)/nucleo-common/dist/openocd-f2.cfg
else ifeq ($(CPU),stm32f3)
export OPENOCD_CONFIG := $(RIOTBOARD)/nucleo-common/dist/openocd-f3.cfg
else ifeq ($(CPU),stm32f4)
export OPENOCD_CONFIG := $(RIOTBOARD)/nucleo-common/dist/openocd-f4.cfg
else ifeq ($(CPU),stm32f7)
export OPENOCD_CONFIG := $(RIOTBOARD)/nucleo-common/dist/openocd-f7.cfg
else ifeq ($(CPU),stm32l0)
export OPENOCD_CONFIG := $(RIOTBOARD)/nucleo-common/dist/openocd-l0.cfg
else ifeq ($(CPU),stm32l1)
export OPENOCD_CONFIG := $(RIOTBOARD)/nucleo-common/dist/openocd-l1.cfg
else ifeq ($(CPU),stm32l4)
export OPENOCD_CONFIG := $(RIOTBOARD)/nucleo-common/dist/openocd-l4.cfg
endif
endif
# this board uses openocd
include $(RIOTMAKE)/tools/openocd.inc.mk

View File

@ -0,0 +1,3 @@
source [find target/stm32f0x.cfg]
reset_config srst_only
$_TARGETNAME configure -rtos auto

View File

@ -0,0 +1,3 @@
source [find target/stm32f1x.cfg]
reset_config srst_only
$_TARGETNAME configure -rtos auto

View File

@ -0,0 +1,3 @@
source [find target/stm32f2x.cfg]
reset_config srst_only
$_TARGETNAME configure -rtos auto

View File

@ -0,0 +1,3 @@
source [find target/stm32f3x.cfg]
reset_config srst_only
$_TARGETNAME configure -rtos auto

View File

@ -0,0 +1,3 @@
source [find target/stm32f4x.cfg]
reset_config srst_only
$_TARGETNAME configure -rtos auto

View File

@ -0,0 +1,3 @@
source [find target/stm32f7x.cfg]
reset_config srst_only
$_TARGETNAME configure -rtos auto

View File

@ -0,0 +1,3 @@
source [find target/stm32l0.cfg]
reset_config srst_only
$_TARGETNAME configure -rtos auto

View File

@ -0,0 +1,3 @@
source [find target/stm32l1.cfg]
reset_config srst_only
$_TARGETNAME configure -rtos auto

View File

@ -0,0 +1,3 @@
source [find target/stm32l4x.cfg]
reset_config srst_only
$_TARGETNAME configure -rtos auto

View File

@ -1 +0,0 @@
source [find board/st_nucleo_f0.cfg]

View File

@ -1 +0,0 @@
source [find board/st_nucleo_f0.cfg]

View File

@ -1,2 +0,0 @@
source [find board/st_nucleo_f0.cfg]
$_TARGETNAME configure -rtos auto

View File

@ -1,2 +0,0 @@
source [find board/st_nucleo_f0.cfg]
$_TARGETNAME configure -rtos auto

View File

@ -1,3 +0,0 @@
#source [find board/st_nucleo_f1.cfg]
source [find board/st_nucleo_f103rb.cfg]
$_TARGETNAME configure -rtos auto

View File

@ -1 +0,0 @@
source [find board/st_nucleo_f3.cfg]

View File

@ -1,2 +0,0 @@
source [find board/st_nucleo_f3.cfg]
$_TARGETNAME configure -rtos auto

View File

@ -1,2 +0,0 @@
source [find board/st_nucleo_f3.cfg]
$_TARGETNAME configure -rtos auto

View File

@ -1,2 +0,0 @@
source [find board/st_nucleo_f4.cfg]
$_TARGETNAME configure -rtos auto

View File

@ -1 +0,0 @@
source [find board/st_nucleo_f4.cfg]

View File

@ -1 +0,0 @@
source [find board/st_nucleo_f4.cfg]

View File

@ -1 +0,0 @@
source [find board/st_nucleo_f4.cfg]

View File

@ -1,7 +0,0 @@
source [find interface/stlink-v2-1.cfg]
transport select hla_swd
source [find target/stm32l0.cfg]
reset_config srst_only

View File

@ -1,7 +0,0 @@
source [find interface/stlink-v2-1.cfg]
transport select hla_swd
source [find target/stm32l0.cfg]
reset_config srst_only

View File

@ -1,2 +0,0 @@
source [find board/st_nucleo_l1.cfg]
$_TARGETNAME configure -rtos auto

View File

@ -1,5 +0,0 @@
source [find interface/stlink-v2-1.cfg]
transport select hla_swd
source [find target/stm32l4x.cfg]

View File

@ -1,7 +0,0 @@
source [find interface/stlink-v2-1.cfg]
transport select hla_swd
source [find target/stm32f2x.cfg]
reset_config srst_only

View File

@ -1 +0,0 @@
source [find board/st_nucleo_f3.cfg]

View File

@ -1 +0,0 @@
source [find board/st_nucleo_f4.cfg]

View File

@ -1 +0,0 @@
source [find board/st_nucleo_f4.cfg]

View File

@ -1 +0,0 @@
source [find board/st_nucleo_f4.cfg]

View File

@ -1 +0,0 @@
source [find board/st_nucleo_f4.cfg]

View File

@ -1,5 +0,0 @@
source [find interface/stlink-v2-1.cfg]
transport select hla_swd
source [find target/stm32f7x.cfg]

View File

@ -1,5 +0,0 @@
source [find interface/stlink-v2-1.cfg]
transport select hla_swd
source [find target/stm32f7x.cfg]

View File

@ -1,5 +0,0 @@
source [find interface/stlink-v2-1.cfg]
transport select hla_swd
source [find target/stm32f7x.cfg]

View File

@ -1 +0,0 @@
source [find board/st_nucleo_f0.cfg]

View File

@ -1 +0,0 @@
source [find board/st_nucleo_f0.cfg]

View File

@ -1 +0,0 @@
source [find board/st_nucleo_f3.cfg]

View File

@ -1,7 +0,0 @@
source [find interface/stlink-v2-1.cfg]
transport select hla_swd
source [find target/stm32l0.cfg]
reset_config srst_only

View File

@ -1,7 +0,0 @@
source [find interface/stlink-v2-1.cfg]
transport select hla_swd
source [find target/stm32l4x.cfg]
reset_config srst_only srst_nogate

View File

@ -28,6 +28,8 @@ export OPENOCD_PRE_VERIFY_CMDS += \
export OPENOCD_EXTRA_INIT
export PRE_FLASH_CHECK_SCRIPT = $(RIOTCPU)/$(CPU)/dist/check-fcfield-elf.sh
export DEBUG_ADAPTER ?= dap
# Add board selector (USB serial) to OpenOCD options if specified.
# Use /dist/tools/usb-serial/list-ttys.sh to find out serial number.
# Usage: SERIAL="0200..." BOARD="pba-d-01-kw2x" make flash

View File

@ -1,7 +1,6 @@
#
# Freescale Kinetis kw2xdxxx devices
#
source [find interface/cmsis-dap.cfg]
#
# K21 devices support both JTAG and SWD transports.

View File

@ -1,2 +1,2 @@
source [find board/atmel_samd21_xplained_pro.cfg]
source [find target/at91samdXX.cfg]
$_TARGETNAME configure -rtos auto

View File

@ -1,2 +1,2 @@
source [find board/atmel_saml21_xplained_pro.cfg]
source [find target/at91samdXX.cfg]
$_TARGETNAME configure -rtos auto

View File

@ -1,2 +1,2 @@
source [find board/atmel_samr21_xplained_pro.cfg]
source [find target/at91samdXX.cfg]
$_TARGETNAME configure -rtos auto

View File

@ -8,6 +8,8 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk
DEBUG_ADAPTER ?= dap
# this board uses openocd
include $(RIOTMAKE)/tools/openocd.inc.mk

View File

@ -1,4 +1,3 @@
source [find interface/cmsis-dap.cfg]
source [find target/lpc17xx.cfg]
adapter_khz 500

View File

@ -1,38 +1 @@
#
# SODAQ Autonomo
#
# Copyright (c) 2016 SODAQ. All right reserved.
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
#
# To program the Autonomo you need openocd v0.9.0 or higher
# Here is an example bash script:
# #!/bin/bash
# ELF=${1?}
# OPENOCD_CMD="telnet_port disabled; init; halt; at91samd bootloader 0; program {{$ELF}} verify reset; shutdown"
# openocd -d2 -f boards/sodaq-autonomo/dist/openocd.cfg -c "$OPENOCD_CMD"
source [find interface/cmsis-dap.cfg]
# chip name
set CHIPNAME at91samd21j18
set ENDIAN little
# choose a port here
set telnet_port 0
source [find target/at91samdXX.cfg]

View File

@ -9,5 +9,8 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk
export DEBUG_ADAPTER ?= stlink
export STLINK_VERSION ?= 2
# this board uses openocd
include $(RIOTMAKE)/tools/openocd.inc.mk

View File

@ -1,2 +1,6 @@
source [find board/stm32f0discovery.cfg]
set WORKAREASIZE 0x2000
source [find target/stm32f0x.cfg]
reset_config srst_only
$_TARGETNAME configure -rtos auto

View File

@ -9,5 +9,8 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk
export DEBUG_ADAPTER ?= stlink
export STLINK_VERSION ?= 2
# this board uses openocd
include $(RIOTMAKE)/tools/openocd.inc.mk

View File

@ -1,2 +1,5 @@
source [find board/stm32f3discovery.cfg]
source [find target/stm32f3x.cfg]
reset_config srst_only
$_TARGETNAME configure -rtos auto

View File

@ -9,5 +9,8 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk
export DEBUG_ADAPTER ?= stlink
export STLINK_VERSION ?= 2
# this board uses openocd
include $(RIOTMAKE)/tools/openocd.inc.mk

View File

@ -1,2 +1,8 @@
source [find board/stm32f4discovery.cfg]
# increase working area to 64KB
set WORKAREASIZE 0x10000
source [find target/stm32f4x.cfg]
reset_config srst_only
$_TARGETNAME configure -rtos auto

View File

@ -9,5 +9,8 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk
export DEBUG_ADAPTER ?= stlink
export STLINK_VERSION ?= 2-1
# this board uses openocd
include $(RIOTMAKE)/tools/openocd.inc.mk

View File

@ -1,5 +1 @@
source [find interface/stlink-v2-1.cfg]
transport select hla_swd
source [find target/stm32f7x.cfg]

View File

@ -9,5 +9,8 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# setup serial terminal
include $(RIOTMAKE)/tools/serial.inc.mk
export DEBUG_ADAPTER ?= stlink
export STLINK_VERSION ?= 2
# this board uses openocd
include $(RIOTMAKE)/tools/openocd.inc.mk

View File

@ -1,6 +1,3 @@
source [find interface/stlink-v2.cfg]
transport select hla_swd
set WORKAREASIZE 0x4000
source [find target/nrf51.cfg]
$_TARGETNAME configure -rtos auto