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

boards/nrf52: setup supported programmers

This commit is contained in:
Alexandre Abadie 2021-02-11 14:59:43 +01:00
parent 7a4f926aae
commit 18b1e16d3a
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
12 changed files with 30 additions and 0 deletions

View File

@ -2,6 +2,7 @@
PROGRAMMER ?= adafruit-nrfutil
include $(RIOTBOARD)/common/nrf52/Makefile.include
PROGRAMMERS_SUPPORTED += adafruit-nrfutil
ifeq ($(PROGRAMMER),adafruit-nrfutil)
# The preinstalled bootloader must also be taken into account so

View File

@ -28,3 +28,4 @@ endif
$(FLASHER) dfu genpkg --dev-type 0x0052 --sd-req 0x00B6 --application $< $@
include $(RIOTBOARD)/common/nrf52/Makefile.include
PROGRAMMERS_SUPPORTED += nrfutil

View File

@ -13,6 +13,8 @@ ifeq ($(PROGRAMMER),bossa)
PREFLASH_DELAY = 1
endif
PROGRAMMERS_SUPPORTED += bossa
TESTRUNNER_CONNECT_DELAY ?= 2
$(call target-export-variables,test,TESTRUNNER_CONNECT_DELAY)

View File

@ -23,3 +23,6 @@ ifneq (,$(filter $(BOARD),ruuvitag thingy52))
$(error Cannot use OpenOCD with $(BOARD) board)
endif
endif
# set list of supported programmers
PROGRAMMERS_SUPPORTED += bmp openocd

View File

@ -5,6 +5,8 @@ CFLAGS += -DBOARD_NRFANTENNA_DEFAULT=BOARD_NRFANTENNA_$(BOARD_NRFANTENNA_DEFAULT
# add the common header files to the include path
INCLUDES += -I$(RIOTBOARD)/common/particle-mesh/include
PROGRAMMERS_SUPPORTED += dfu-util pyocd
ifeq (1,$(PARTICLE_MONOFIRMWARE))
CFLAGS += -DPARTICLE_MONOFIRMWARE
ROM_OFFSET = 0x30000
@ -17,6 +19,9 @@ ifeq (1,$(PARTICLE_MONOFIRMWARE))
# then again nothing can be done in that case anyway, and the preflash
# routines fall through without erring.
include $(RIOTMAKE)/tools/usb_board_reset.mk
# Only dfu-util is supported in this case
PROGRAMMERS_SUPPORTED = dfu-util
else
# This board uses a DAP-Link programmer
# Flashing support is provided through pyocd (default) and openocd.

View File

@ -1,5 +1,7 @@
# for this board, flash with OpenOCD by default. PyOCD is also supported.
PROGRAMMER ?= openocd
PROGRAMMERS_SUPPORTED += pyocd
# The board is not recognized automatically by pyocd, so the CPU target
# option is passed explicitly
PYOCD_FLASH_TARGET_TYPE ?= -t $(CPU)

View File

@ -8,4 +8,7 @@ PROGRAMMER ?= pyocd
PYOCD_FLASH_TARGET_TYPE ?= -t $(CPU)
OPENOCD_DEBUG_ADAPTER = dap
# This board can also be flashed with pyocd
PROGRAMMERS_SUPPORTED += pyocd
include $(RIOTBOARD)/common/nrf52/Makefile.include

View File

@ -16,4 +16,6 @@ ifeq (uf2conv,$(PROGRAMMER))
include $(RIOTMAKE)/tools/usb_board_reset.mk
endif
PROGRAMMERS_SUPPORTED += uf2conv
include $(RIOTBOARD)/common/nrf52/Makefile.include

View File

@ -8,4 +8,7 @@ PROGRAMMER ?= pyocd
PYOCD_FLASH_TARGET_TYPE ?= -t nrf52840
OPENOCD_DEBUG_ADAPTER = dap
# This board can also be flashed with pyocd
PROGRAMMERS_SUPPORTED += pyocd
include $(RIOTBOARD)/common/nrf52/Makefile.include

View File

@ -22,6 +22,8 @@ ifeq (nrfutil,$(PROGRAMMER))
include $(RIOTMAKE)/tools/usb_board_reset.mk
endif
PROGRAMMERS_SUPPORTED += nrfutil
%.hex.zip: %.hex
$(call check_cmd,$(FLASHER),Flash program and preparation tool)
$(FLASHER) pkg generate --hw-version 52 --sd-req 0x00 --application-version 1 --application $< $@

View File

@ -7,3 +7,6 @@ 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,3 +7,6 @@ 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))