From cd1063426ef3aeb928002ec5f2a2e0d8c8395210 Mon Sep 17 00:00:00 2001 From: Daniel Thompson Date: Mon, 20 Jan 2020 08:08:22 +0000 Subject: 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. 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 -- cgit v0.10.2