mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-22 13:03:54 +01:00
The Adafruit Clue and Itsybitsy nRF52 also use the Adafruit nRF52 Bootloader which has a common module that can be used. Especially the Itsybitsy nRF52 (mis)uses the nrfutil programmer target and has a lot of redundant code. Furthermore, the Double Tap Magic Value used by both boards is incorrect for using the USB Bootloader.
9 lines
330 B
Makefile
9 lines
330 B
Makefile
FLASHFILE = $(HEXFILE)
|
|
FLASHDEPS += $(HEXFILE).zip
|
|
FLASHER ?= adafruit-nrfutil
|
|
FFLAGS = dfu serial --port=${PORT} --baudrate=${BAUD} --touch=1200 --package=$(HEXFILE).zip --singlebank
|
|
|
|
%.hex.zip: %.hex
|
|
$(call check_cmd,$(FLASHER),Flash program and preparation tool)
|
|
$(FLASHER) dfu genpkg $(ADANRFUTIL_FLAGS) --application $< $@
|