summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-01-20 08:07:35 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-01-20 08:09:28 (GMT)
commit64f1015a8d1706ee5a144a66b9616231157f4b3f (patch)
treefccfdc44fb5f4056d0b37026fd63812eeccbe2f5 /Makefile
parent5b016dcb4e936595069335a875e27f0f00630afd (diff)
Makefile: Add shortcut to download the softdevice binary
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
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