Commit 87e426c7 authored by Mike Causer's avatar Mike Causer Committed by Damien George
Browse files

esp8266: Add "erase" target to Makefile, to erase entire flash.

parent 48d81c69
......@@ -180,6 +180,10 @@ deploy: $(BUILD)/firmware-combined.bin
$(ECHO) "Writing $< to the board"
$(Q) --port $(PORT) --baud $(BAUD) write_flash --verify --flash_size=$(FLASH_SIZE) --flash_mode=$(FLASH_MODE) 0 $<
$(ECHO) "Erase flash"
$(Q) --port $(PORT) --baud $(BAUD) erase_flash
echo -e "\r\nimport machine; machine.reset()\r\n" >$(PORT)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment