diff options
author | Mike Causer <mcauser@gmail.com> | 2016-12-15 00:34:40 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-12-15 22:29:16 +1100 |
commit | 87e426c7c78051ef817f022c6df7c320a00eba1d (patch) | |
tree | 8d927ab94f4971d2d52a496b7044b0ef1a40b353 /esp8266 | |
parent | 48d81c690011126ebb70a521f28ab7588fa7c9be (diff) | |
download | micropython-87e426c7c78051ef817f022c6df7c320a00eba1d.tar.gz micropython-87e426c7c78051ef817f022c6df7c320a00eba1d.zip |
esp8266: Add "erase" target to Makefile, to erase entire flash.
Diffstat (limited to 'esp8266')
-rw-r--r-- | esp8266/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/esp8266/Makefile b/esp8266/Makefile index ebf5fc95b6..117ab53f9e 100644 --- a/esp8266/Makefile +++ b/esp8266/Makefile @@ -180,6 +180,10 @@ deploy: $(BUILD)/firmware-combined.bin $(ECHO) "Writing $< to the board" $(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: echo -e "\r\nimport machine; machine.reset()\r\n" >$(PORT) |