summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-07-26 20:03:30 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-07-26 20:03:30 (GMT)
commita9ca9cfe132068488a7a39c7bb6aac69d7936ae6 (patch)
treefbc9bcaa5083df1f2dd6767dbbf0c605fd27bdd1
parent326e06bc6bda0abf02372c8f23f7c9e60cd5cfff (diff)
Makefile: Allow installation via DaFlasher
Generate a .zip file that works with SoftDevice 2.0.1 (still looking for the recipe that works with 5.0), fix up the bootloader to work with DaFlasher and add an extra feature in micropython to cope better. Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
-rw-r--r--Makefile4
m---------bootloader0
m---------micropython0
3 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 6b94687..df9afcf 100644
--- a/Makefile
+++ b/Makefile
@@ -30,6 +30,10 @@ bootloader:
-o bootloader.hex
python3 tools/hex2c.py bootloader.hex > \
reloader/src/boards/$(BOARD)/bootloader.h
+ python3 -m nordicsemi dfu genpkg \
+ --bootloader bootloader/_build-$(BOARD)_nrf52832//$(BOARD)_nrf52832_bootloader-*-nosd.hex \
+ --softdevice bootloader/lib/softdevice/s132_nrf52_6.1.1/s132_nrf52_6.1.1_softdevice.hex \
+ bootloader-daflasher.zip
reloader: bootloader
$(MAKE) -C reloader/ BOARD=$(BOARD)
diff --git a/bootloader b/bootloader
-Subproject 9148e76c4138dbdb9bd1ddf7d125274e6262e22
+Subproject 85a9b76d8451eba2e2c9e5d9b3b1b8450178105
diff --git a/micropython b/micropython
-Subproject 9d5e23fc71a54c64f21ae762050f4612530d65d
+Subproject 89f48aca20920073d0c88782df0a8881651a5b2