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:
parent
64f1015a8d
commit
cd1063426e
1 changed files with 2 additions and 1 deletions
3
Makefile
3
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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue