From ebd1e8f0167aac8071d7f7c7ef5b41dc05cdab4d Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Mon, 3 Feb 2020 20:48:51 +0100 Subject: [PATCH] makefiles/tools: add support for nrfutil --- makefiles/tools/adafruit-nrfutil.inc.mk | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 makefiles/tools/adafruit-nrfutil.inc.mk diff --git a/makefiles/tools/adafruit-nrfutil.inc.mk b/makefiles/tools/adafruit-nrfutil.inc.mk new file mode 100644 index 0000000000..eea4ba8024 --- /dev/null +++ b/makefiles/tools/adafruit-nrfutil.inc.mk @@ -0,0 +1,8 @@ +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 --dev-type 0x0052 --sd-req 0x00B6 --application $< $@