Skip to content

Commit 96de4d1

Browse files
committed
esp32: Make firmware.bin start at 0x1000 to allow flash size autodetect.
The firmware.bin file must now be flashed starting at address 0x1000, and it should no longer matter what flash size the firmware was built for.
1 parent 046d15f commit 96de4d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

esp32/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ $(BUILD)/firmware.bin: $(BUILD)/bootloader.bin $(BUILD)/partitions.bin $(BUILD)/
578578

579579
deploy: $(BUILD)/firmware.bin
580580
$(ECHO) "Writing $^ to the board"
581-
$(Q)$(ESPTOOL) --chip esp32 --port $(PORT) --baud $(BAUD) write_flash -z --flash_mode $(FLASH_MODE) --flash_freq $(FLASH_FREQ) --flash_size $(FLASH_SIZE) 0 $^
581+
$(Q)$(ESPTOOL) --chip esp32 --port $(PORT) --baud $(BAUD) write_flash -z --flash_mode $(FLASH_MODE) --flash_freq $(FLASH_FREQ) 0x1000 $^
582582

583583
erase:
584584
$(ECHO) "Erasing flash"

esp32/makeimg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
]
1212
file_out = sys.argv[4]
1313

14-
cur_offset = 0
14+
cur_offset = OFFSET_BOOTLOADER
1515
with open(file_out, 'wb') as fout:
1616
for name, offset, file_in in files_in:
1717
assert offset >= cur_offset

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