Skip to content

Commit 87e426c

Browse files
mcauserdpgeorge
authored andcommitted
esp8266: Add "erase" target to Makefile, to erase entire flash.
1 parent 48d81c6 commit 87e426c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

esp8266/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ deploy: $(BUILD)/firmware-combined.bin
180180
$(ECHO) "Writing $< to the board"
181181
$(Q)esptool.py --port $(PORT) --baud $(BAUD) write_flash --verify --flash_size=$(FLASH_SIZE) --flash_mode=$(FLASH_MODE) 0 $<
182182

183+
erase:
184+
$(ECHO) "Erase flash"
185+
$(Q)esptool.py --port $(PORT) --baud $(BAUD) erase_flash
186+
183187
reset:
184188
echo -e "\r\nimport machine; machine.reset()\r\n" >$(PORT)
185189

0 commit comments

Comments
 (0)