1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-14 17:13:50 +01:00

boards/{thingy52,ruuvitag}: allow OpenOCD as programmer

This commit is contained in:
Marian Buschsieweke 2022-06-21 15:04:13 +02:00
parent 03dfad899b
commit e3f5ba90fd
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94
3 changed files with 7 additions and 24 deletions

View File

@ -8,15 +8,8 @@ ifeq (bmp,$(PROGRAMMER))
PORT_DARWIN ?= $(wordlist 2, 2, $(sort $(wildcard /dev/tty.usbmodem*)))
endif
ifneq (,$(filter $(BOARD),ruuvitag thingy52))
# openocd doesn't fully work with ruuvitag and thingy52
PROGRAMMER ?= jlink
ifeq (openocd,$(PROGRAMMER))
$(error Cannot use OpenOCD with $(BOARD) board)
endif
else
# no issues with OpenOCD for other nRF52 boards are known
PROGRAMMERS_SUPPORTED += openocd
# set list of supported programmers
PROGRAMMERS_SUPPORTED += openocd bmp
# keep name of `JLINK` in sync with script jlink.sh in $(RIOTTOOLS)/jlink
JLINK ?= JLinkExe
ifneq (,$(command -v $(JLINK)))
@ -24,7 +17,6 @@ else
else
PROGRAMMER ?= openocd
endif
endif
# setup JLink for flashing
JLINK_DEVICE = nrf52
@ -33,6 +25,3 @@ JLINK_DEVICE = nrf52
# build from source (master > 2018, August the 13rd) is required.
OPENOCD_DEBUG_ADAPTER ?= jlink
OPENOCD_CONFIG = $(RIOTBOARD)/common/nrf52/dist/openocd.cfg
# set list of supported programmers
PROGRAMMERS_SUPPORTED += bmp

View File

@ -7,6 +7,3 @@ endif
# use shared Makefile.include
include $(RIOTBOARD)/common/nrf52xxxdk/Makefile.include
# openocd doesn't fully work with this board
PROGRAMMERS_SUPPORTED := $(filter-out openocd,$(PROGRAMMERS_SUPPORTED))

View File

@ -7,6 +7,3 @@ endif
# use shared Makefile.include
include $(RIOTBOARD)/common/nrf52/Makefile.include
# openocd doesn't fully work with this board
PROGRAMMERS_SUPPORTED := $(filter-out openocd,$(PROGRAMMERS_SUPPORTED))