File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -516,7 +516,7 @@ SRC_QSTR_AUTO_DEPS +=
516
516
517
517
all : $(BUILD ) /bootloader.bin $(BUILD ) /partitions.bin $(BUILD ) /application.bin
518
518
519
- .PHONY : idf-version deploy
519
+ .PHONY : idf-version deploy erase
520
520
521
521
idf-version :
522
522
$(ECHO ) " IDF version: f807d16310719b0dcef07de0276934653b6e48ed"
@@ -525,6 +525,10 @@ deploy: $(BUILD)/bootloader.bin $(BUILD)/partitions.bin $(BUILD)/application.bin
525
525
$(ECHO ) " Writing $^ to the board"
526
526
$(Q )$(ESPTOOL ) --chip esp32 --port $(PORT ) --baud $(BAUD ) write_flash -z --flash_mode $(FLASH_MODE ) --flash_freq $(FLASH_FREQ ) --flash_size $(FLASH_SIZE ) 0x1000 $(BUILD ) /bootloader.bin 0x8000 $(BUILD ) /partitions.bin 0x10000 $(BUILD ) /application.bin
527
527
528
+ erase :
529
+ $(ECHO ) " Erasing flash"
530
+ $(Q )$(ESPTOOL ) --chip esp32 --port $(PORT ) --baud $(BAUD ) erase_flash
531
+
528
532
$(BUILD ) /esp32_out.ld : sdkconfig.h
529
533
$(Q )$(CC ) -I. -C -P -x c -E $(ESPIDF ) /components/esp32/ld/esp32.ld -o $@
530
534
You can’t perform that action at this time.
0 commit comments