1
0
Fork 0

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.
This commit is contained in:
Daniel Thompson 2020-01-20 08:08:22 +00:00
parent 64f1015a8d
commit cd1063426e

View file

@ -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