summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-01-20 08:08:22 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-01-20 08:09:28 (GMT)
commitcd1063426ef3aeb928002ec5f2a2e0d8c8395210 (patch)
tree97c0548197ef9f50b6e846b21afd0e3cce432e97 /Makefile
parent64f1015a8d1706ee5a144a66b9616231157f4b3f (diff)
Makefile: Switch to pyocd for flashing
Using the mass storage device mode on Nitrogen leaves the board in an odd state where the bootloader cannot properly load the payload.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 78cd191..b61009c 100644
--- a/Makefile
+++ b/Makefile
@@ -39,7 +39,8 @@ dfu:
python3 -m nordicsemi dfu serial --package micropython.zip --port /dev/ttyACM0
flash:
- cp bootloader.hex /run/media/$(USER)/MBED
+ pyocd erase -t nrf52 --mass-erase
+ pyocd flash -t nrf52 bootloader.hex
.PHONY: bootloader micropython