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

boards/nrf51: setup supported programmers

This commit is contained in:
Alexandre Abadie 2021-02-11 14:59:01 +01:00
parent 6cc00288b4
commit 7a4f926aae
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
4 changed files with 7 additions and 2 deletions

View File

@ -6,7 +6,5 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
OPENOCD_DEBUG_ADAPTER ?= stlink
STLINK_VERSION ?= 2
PROGRAMMER = openocd
# include nrf51 boards common configuration
include $(RIOTBOARD)/common/nrf51/Makefile.include

View File

@ -1,6 +1,9 @@
# for this board we support flashing via openocd or pyocd
PROGRAMMER ?= openocd
# This board can be flashed with pyocd
PROGRAMMERS_SUPPORTED += pyocd
OPENOCD_DEBUG_ADAPTER = dap
# PyOCD doesn't recognize automatically the board ID, so target type has to
# be passed explicitly

View File

@ -16,3 +16,6 @@ else ifeq ($(PROGRAMMER),jlink)
# setup JLink for flashing
JLINK_DEVICE = nrf51822
endif
# Set openocd as default supported programmers
PROGRAMMERS_SUPPORTED += openocd

View File

@ -3,6 +3,7 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
# for this board we support flashing via openocd or pyocd
PROGRAMMER ?= openocd
PROGRAMMERS_SUPPORTED += pyocd
OPENOCD_DEBUG_ADAPTER = dap