Skip to content

Commit 67a1d47

Browse files
committed
esp32/Makefile: Add "erase" target for convenient erasure.
1 parent c2d5551 commit 67a1d47

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

esp32/Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ SRC_QSTR_AUTO_DEPS +=
516516

517517
all: $(BUILD)/bootloader.bin $(BUILD)/partitions.bin $(BUILD)/application.bin
518518

519-
.PHONY: idf-version deploy
519+
.PHONY: idf-version deploy erase
520520

521521
idf-version:
522522
$(ECHO) "IDF version: f807d16310719b0dcef07de0276934653b6e48ed"
@@ -525,6 +525,10 @@ deploy: $(BUILD)/bootloader.bin $(BUILD)/partitions.bin $(BUILD)/application.bin
525525
$(ECHO) "Writing $^ to the board"
526526
$(Q)$(ESPTOOL) --chip esp32 --port $(PORT) --baud $(BAUD) write_flash -z --flash_mode $(FLASH_MODE) --flash_freq $(FLASH_FREQ) --flash_size $(FLASH_SIZE) 0x1000 $(BUILD)/bootloader.bin 0x8000 $(BUILD)/partitions.bin 0x10000 $(BUILD)/application.bin
527527

528+
erase:
529+
$(ECHO) "Erasing flash"
530+
$(Q)$(ESPTOOL) --chip esp32 --port $(PORT) --baud $(BAUD) erase_flash
531+
528532
$(BUILD)/esp32_out.ld: sdkconfig.h
529533
$(Q)$(CC) -I. -C -P -x c -E $(ESPIDF)/components/esp32/ld/esp32.ld -o $@
530534

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy