1
0
Fork 0

Makefile: Add shortcut to download the softdevice binary

This commit is contained in:
Daniel Thompson 2020-01-20 08:07:35 +00:00
parent 5b016dcb4e
commit 64f1015a8d

View file

@ -24,6 +24,9 @@ bootloader:
bootloader/lib/softdevice/s132_nrf52_6.1.1/s132_nrf52_6.1.1_softdevice.hex \ bootloader/lib/softdevice/s132_nrf52_6.1.1/s132_nrf52_6.1.1_softdevice.hex \
-o bootloader.hex -o bootloader.hex
softdevice:
micropython/ports/nrf/drivers/bluetooth/download_ble_stack.sh
micropython: micropython:
$(MAKE) -C micropython/mpy-cross $(MAKE) -C micropython/mpy-cross
$(MAKE) -C micropython/ports/nrf BOARD=$(BOARD) SD=s132 $(MAKE) -C micropython/ports/nrf BOARD=$(BOARD) SD=s132
@ -31,7 +34,7 @@ micropython:
--dev-type 0x0052 \ --dev-type 0x0052 \
--application micropython/ports/nrf/build-$(BOARD)-s132/firmware.hex \ --application micropython/ports/nrf/build-$(BOARD)-s132/firmware.hex \
micropython.zip micropython.zip
dfu: dfu:
python3 -m nordicsemi dfu serial --package micropython.zip --port /dev/ttyACM0 python3 -m nordicsemi dfu serial --package micropython.zip --port /dev/ttyACM0