@@ -405,11 +405,6 @@ flash: $(BUILD)/$(OUT_FILE)-nosd.hex
405
405
@echo Flashing: $(notdir $< )
406
406
$(NRFJPROG ) --program $< --sectoranduicrerase -f nrf52 --reset
407
407
408
- # dfu using CDC interface
409
- dfu-flash : $(BUILD ) /$(MERGED_FILE ) .zip
410
- @:$(call check_defined, SERIAL, example: SERIAL=/dev/ttyACM0)
411
- $(NRFUTIL ) --verbose dfu serial --package $< -p $(SERIAL ) -b 115200 --singlebank --touch 1200
412
-
413
408
erase :
414
409
@echo Erasing flash
415
410
$(NRFJPROG ) -f nrf52 --eraseall
@@ -432,11 +427,7 @@ flash: $(BUILD)/$(OUT_FILE)-nosd.hex
432
427
@echo Flashing: $(notdir $< )
433
428
$(PYOCD ) flash -t $(MCU_SUB_VARIANT ) $<
434
429
435
- # dfu unsupported with pyocd
436
- dfu-flash : $(BUILD ) /$(MERGED_FILE ) .zip
437
- $(error dfu-flash is not implemented with pyocd as the FLASHER)
438
-
439
- erase :
430
+ erase :
440
431
@echo Erasing flash
441
432
$(PYOCD ) erase -t $(MCU_SUB_VARIANT ) --chip
442
433
@@ -452,6 +443,13 @@ mbr:
452
443
453
444
endif
454
445
446
+ # ------------------- Flash with NRFUTIL via DFU -------------------
447
+
448
+ # dfu using CDC interface
449
+ dfu-flash : $(BUILD ) /$(MERGED_FILE ) .zip
450
+ @:$(call check_defined, SERIAL, example: SERIAL=/dev/ttyACM0)
451
+ $(NRFUTIL ) --verbose dfu serial --package $< -p $(SERIAL ) -b 115200 --singlebank --touch 1200
452
+
455
453
# ------------------- Debugging -------------------
456
454
457
455
gdbflash : $(BUILD ) /$(MERGED_FILE ) .hex
0 commit comments