mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:12:57 +01:00
boards/nrf52: setup supported programmers
This commit is contained in:
parent
7a4f926aae
commit
18b1e16d3a
@ -2,6 +2,7 @@
|
|||||||
PROGRAMMER ?= adafruit-nrfutil
|
PROGRAMMER ?= adafruit-nrfutil
|
||||||
|
|
||||||
include $(RIOTBOARD)/common/nrf52/Makefile.include
|
include $(RIOTBOARD)/common/nrf52/Makefile.include
|
||||||
|
PROGRAMMERS_SUPPORTED += adafruit-nrfutil
|
||||||
|
|
||||||
ifeq ($(PROGRAMMER),adafruit-nrfutil)
|
ifeq ($(PROGRAMMER),adafruit-nrfutil)
|
||||||
# The preinstalled bootloader must also be taken into account so
|
# The preinstalled bootloader must also be taken into account so
|
||||||
|
@ -28,3 +28,4 @@ endif
|
|||||||
$(FLASHER) dfu genpkg --dev-type 0x0052 --sd-req 0x00B6 --application $< $@
|
$(FLASHER) dfu genpkg --dev-type 0x0052 --sd-req 0x00B6 --application $< $@
|
||||||
|
|
||||||
include $(RIOTBOARD)/common/nrf52/Makefile.include
|
include $(RIOTBOARD)/common/nrf52/Makefile.include
|
||||||
|
PROGRAMMERS_SUPPORTED += nrfutil
|
||||||
|
@ -13,6 +13,8 @@ ifeq ($(PROGRAMMER),bossa)
|
|||||||
PREFLASH_DELAY = 1
|
PREFLASH_DELAY = 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
PROGRAMMERS_SUPPORTED += bossa
|
||||||
|
|
||||||
TESTRUNNER_CONNECT_DELAY ?= 2
|
TESTRUNNER_CONNECT_DELAY ?= 2
|
||||||
$(call target-export-variables,test,TESTRUNNER_CONNECT_DELAY)
|
$(call target-export-variables,test,TESTRUNNER_CONNECT_DELAY)
|
||||||
|
|
||||||
|
@ -23,3 +23,6 @@ ifneq (,$(filter $(BOARD),ruuvitag thingy52))
|
|||||||
$(error Cannot use OpenOCD with $(BOARD) board)
|
$(error Cannot use OpenOCD with $(BOARD) board)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# set list of supported programmers
|
||||||
|
PROGRAMMERS_SUPPORTED += bmp openocd
|
||||||
|
@ -5,6 +5,8 @@ CFLAGS += -DBOARD_NRFANTENNA_DEFAULT=BOARD_NRFANTENNA_$(BOARD_NRFANTENNA_DEFAULT
|
|||||||
# add the common header files to the include path
|
# add the common header files to the include path
|
||||||
INCLUDES += -I$(RIOTBOARD)/common/particle-mesh/include
|
INCLUDES += -I$(RIOTBOARD)/common/particle-mesh/include
|
||||||
|
|
||||||
|
PROGRAMMERS_SUPPORTED += dfu-util pyocd
|
||||||
|
|
||||||
ifeq (1,$(PARTICLE_MONOFIRMWARE))
|
ifeq (1,$(PARTICLE_MONOFIRMWARE))
|
||||||
CFLAGS += -DPARTICLE_MONOFIRMWARE
|
CFLAGS += -DPARTICLE_MONOFIRMWARE
|
||||||
ROM_OFFSET = 0x30000
|
ROM_OFFSET = 0x30000
|
||||||
@ -17,6 +19,9 @@ ifeq (1,$(PARTICLE_MONOFIRMWARE))
|
|||||||
# then again nothing can be done in that case anyway, and the preflash
|
# then again nothing can be done in that case anyway, and the preflash
|
||||||
# routines fall through without erring.
|
# routines fall through without erring.
|
||||||
include $(RIOTMAKE)/tools/usb_board_reset.mk
|
include $(RIOTMAKE)/tools/usb_board_reset.mk
|
||||||
|
|
||||||
|
# Only dfu-util is supported in this case
|
||||||
|
PROGRAMMERS_SUPPORTED = dfu-util
|
||||||
else
|
else
|
||||||
# This board uses a DAP-Link programmer
|
# This board uses a DAP-Link programmer
|
||||||
# Flashing support is provided through pyocd (default) and openocd.
|
# Flashing support is provided through pyocd (default) and openocd.
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
# for this board, flash with OpenOCD by default. PyOCD is also supported.
|
# for this board, flash with OpenOCD by default. PyOCD is also supported.
|
||||||
PROGRAMMER ?= openocd
|
PROGRAMMER ?= openocd
|
||||||
|
PROGRAMMERS_SUPPORTED += pyocd
|
||||||
|
|
||||||
# The board is not recognized automatically by pyocd, so the CPU target
|
# The board is not recognized automatically by pyocd, so the CPU target
|
||||||
# option is passed explicitly
|
# option is passed explicitly
|
||||||
PYOCD_FLASH_TARGET_TYPE ?= -t $(CPU)
|
PYOCD_FLASH_TARGET_TYPE ?= -t $(CPU)
|
||||||
|
@ -8,4 +8,7 @@ PROGRAMMER ?= pyocd
|
|||||||
PYOCD_FLASH_TARGET_TYPE ?= -t $(CPU)
|
PYOCD_FLASH_TARGET_TYPE ?= -t $(CPU)
|
||||||
OPENOCD_DEBUG_ADAPTER = dap
|
OPENOCD_DEBUG_ADAPTER = dap
|
||||||
|
|
||||||
|
# This board can also be flashed with pyocd
|
||||||
|
PROGRAMMERS_SUPPORTED += pyocd
|
||||||
|
|
||||||
include $(RIOTBOARD)/common/nrf52/Makefile.include
|
include $(RIOTBOARD)/common/nrf52/Makefile.include
|
||||||
|
@ -16,4 +16,6 @@ ifeq (uf2conv,$(PROGRAMMER))
|
|||||||
include $(RIOTMAKE)/tools/usb_board_reset.mk
|
include $(RIOTMAKE)/tools/usb_board_reset.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
PROGRAMMERS_SUPPORTED += uf2conv
|
||||||
|
|
||||||
include $(RIOTBOARD)/common/nrf52/Makefile.include
|
include $(RIOTBOARD)/common/nrf52/Makefile.include
|
||||||
|
@ -8,4 +8,7 @@ PROGRAMMER ?= pyocd
|
|||||||
PYOCD_FLASH_TARGET_TYPE ?= -t nrf52840
|
PYOCD_FLASH_TARGET_TYPE ?= -t nrf52840
|
||||||
OPENOCD_DEBUG_ADAPTER = dap
|
OPENOCD_DEBUG_ADAPTER = dap
|
||||||
|
|
||||||
|
# This board can also be flashed with pyocd
|
||||||
|
PROGRAMMERS_SUPPORTED += pyocd
|
||||||
|
|
||||||
include $(RIOTBOARD)/common/nrf52/Makefile.include
|
include $(RIOTBOARD)/common/nrf52/Makefile.include
|
||||||
|
@ -22,6 +22,8 @@ ifeq (nrfutil,$(PROGRAMMER))
|
|||||||
include $(RIOTMAKE)/tools/usb_board_reset.mk
|
include $(RIOTMAKE)/tools/usb_board_reset.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
PROGRAMMERS_SUPPORTED += nrfutil
|
||||||
|
|
||||||
%.hex.zip: %.hex
|
%.hex.zip: %.hex
|
||||||
$(call check_cmd,$(FLASHER),Flash program and preparation tool)
|
$(call check_cmd,$(FLASHER),Flash program and preparation tool)
|
||||||
$(FLASHER) pkg generate --hw-version 52 --sd-req 0x00 --application-version 1 --application $< $@
|
$(FLASHER) pkg generate --hw-version 52 --sd-req 0x00 --application-version 1 --application $< $@
|
||||||
|
@ -7,3 +7,6 @@ endif
|
|||||||
|
|
||||||
# use shared Makefile.include
|
# use shared Makefile.include
|
||||||
include $(RIOTBOARD)/common/nrf52xxxdk/Makefile.include
|
include $(RIOTBOARD)/common/nrf52xxxdk/Makefile.include
|
||||||
|
|
||||||
|
# openocd doesn't fully work with this board
|
||||||
|
PROGRAMMERS_SUPPORTED := $(filter-out openocd,$(PROGRAMMERS_SUPPORTED))
|
||||||
|
@ -7,3 +7,6 @@ endif
|
|||||||
|
|
||||||
# use shared Makefile.include
|
# use shared Makefile.include
|
||||||
include $(RIOTBOARD)/common/nrf52/Makefile.include
|
include $(RIOTBOARD)/common/nrf52/Makefile.include
|
||||||
|
|
||||||
|
# openocd doesn't fully work with this board
|
||||||
|
PROGRAMMERS_SUPPORTED := $(filter-out openocd,$(PROGRAMMERS_SUPPORTED))
|
||||||
|
Loading…
Reference in New Issue
Block a user