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:
parent
6cc00288b4
commit
7a4f926aae
@ -6,7 +6,5 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
|||||||
OPENOCD_DEBUG_ADAPTER ?= stlink
|
OPENOCD_DEBUG_ADAPTER ?= stlink
|
||||||
STLINK_VERSION ?= 2
|
STLINK_VERSION ?= 2
|
||||||
|
|
||||||
PROGRAMMER = openocd
|
|
||||||
|
|
||||||
# include nrf51 boards common configuration
|
# include nrf51 boards common configuration
|
||||||
include $(RIOTBOARD)/common/nrf51/Makefile.include
|
include $(RIOTBOARD)/common/nrf51/Makefile.include
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
# for this board we support flashing via openocd or pyocd
|
# for this board we support flashing via openocd or pyocd
|
||||||
PROGRAMMER ?= openocd
|
PROGRAMMER ?= openocd
|
||||||
|
|
||||||
|
# This board can be flashed with pyocd
|
||||||
|
PROGRAMMERS_SUPPORTED += pyocd
|
||||||
|
|
||||||
OPENOCD_DEBUG_ADAPTER = dap
|
OPENOCD_DEBUG_ADAPTER = dap
|
||||||
# PyOCD doesn't recognize automatically the board ID, so target type has to
|
# PyOCD doesn't recognize automatically the board ID, so target type has to
|
||||||
# be passed explicitly
|
# be passed explicitly
|
||||||
|
@ -16,3 +16,6 @@ else ifeq ($(PROGRAMMER),jlink)
|
|||||||
# setup JLink for flashing
|
# setup JLink for flashing
|
||||||
JLINK_DEVICE = nrf51822
|
JLINK_DEVICE = nrf51822
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Set openocd as default supported programmers
|
||||||
|
PROGRAMMERS_SUPPORTED += openocd
|
||||||
|
@ -3,6 +3,7 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.SLAB_USBtoUART*)))
|
|||||||
|
|
||||||
# for this board we support flashing via openocd or pyocd
|
# for this board we support flashing via openocd or pyocd
|
||||||
PROGRAMMER ?= openocd
|
PROGRAMMER ?= openocd
|
||||||
|
PROGRAMMERS_SUPPORTED += pyocd
|
||||||
|
|
||||||
OPENOCD_DEBUG_ADAPTER = dap
|
OPENOCD_DEBUG_ADAPTER = dap
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user