mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 06:53:52 +01:00
Merge pull request #18168 from maribu/boards/common/programmer
boards/common/{nrf52,cc26xx_cc13xx}: improve default programmer selection
This commit is contained in:
commit
f256e48159
@ -1,5 +1,9 @@
|
||||
# configure the flash tool
|
||||
PROGRAMMER ?= uniflash
|
||||
ifneq (,$(UNIFLASH_PATH))
|
||||
PROGRAMMER ?= uniflash
|
||||
else
|
||||
PROGRAMMER ?= openocd
|
||||
endif
|
||||
|
||||
# uniflash and openocd programmers are supported
|
||||
PROGRAMMERS_SUPPORTED += openocd uniflash
|
||||
|
||||
@ -8,7 +8,13 @@ ifeq (bmp,$(PROGRAMMER))
|
||||
PORT_DARWIN ?= $(wordlist 2, 2, $(sort $(wildcard /dev/tty.usbmodem*)))
|
||||
endif
|
||||
|
||||
PROGRAMMER ?= jlink
|
||||
# keep name of `JLINK` in sync with script jlink.sh in $(RIOTTOOLS)/jlink
|
||||
JLINK ?= JLinkExe
|
||||
ifneq (,$(command -v $(JLINK)))
|
||||
PROGRAMMER ?= jlink
|
||||
else
|
||||
PROGRAMMER ?= openocd
|
||||
endif
|
||||
# setup JLink for flashing
|
||||
JLINK_DEVICE = nrf52
|
||||
# setup OpenOCD for flashing. Version 0.10 of OpenOCD doesn't contain support
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user