From 64f1015a8d1706ee5a144a66b9616231157f4b3f Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Mon, 20 Jan 2020 08:07:35 +0000 Subject: [PATCH] Makefile: Add shortcut to download the softdevice binary --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 203ada4..78cd191 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,9 @@ bootloader: bootloader/lib/softdevice/s132_nrf52_6.1.1/s132_nrf52_6.1.1_softdevice.hex \ -o bootloader.hex +softdevice: + micropython/ports/nrf/drivers/bluetooth/download_ble_stack.sh + micropython: $(MAKE) -C micropython/mpy-cross $(MAKE) -C micropython/ports/nrf BOARD=$(BOARD) SD=s132 @@ -31,7 +34,7 @@ micropython: --dev-type 0x0052 \ --application micropython/ports/nrf/build-$(BOARD)-s132/firmware.hex \ micropython.zip - + dfu: python3 -m nordicsemi dfu serial --package micropython.zip --port /dev/ttyACM0