esp8266: Add "erase" target to Makefile, to erase entire flash.
This commit is contained in:
parent
48d81c6900
commit
87e426c7c7
@ -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)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user