Skip to content
Snippets Groups Projects
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
Branches
Tags
No related merge requests found
...@@ -180,6 +180,10 @@ deploy: $(BUILD)/firmware-combined.bin ...@@ -180,6 +180,10 @@ deploy: $(BUILD)/firmware-combined.bin
$(ECHO) "Writing $< to the board" $(ECHO) "Writing $< to the board"
$(Q)esptool.py --port $(PORT) --baud $(BAUD) write_flash --verify --flash_size=$(FLASH_SIZE) --flash_mode=$(FLASH_MODE) 0 $< $(Q)esptool.py --port $(PORT) --baud $(BAUD) write_flash --verify --flash_size=$(FLASH_SIZE) --flash_mode=$(FLASH_MODE) 0 $<
erase:
$(ECHO) "Erase flash"
$(Q)esptool.py --port $(PORT) --baud $(BAUD) erase_flash
reset: reset:
echo -e "\r\nimport machine; machine.reset()\r\n" >$(PORT) echo -e "\r\nimport machine; machine.reset()\r\n" >$(PORT)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment