feat(esp32c5): Add support for >16 MB flash sizes

This commit is contained in:
Roland Dobai
2025-07-31 10:45:10 +02:00
parent 64f577213b
commit 8e2b94e671
5 changed files with 8 additions and 8 deletions

View File

@@ -12,7 +12,7 @@ STUBS = (
"STUB_SET_VERSION": "1",
"DOWNLOAD_URL": "https://github.com/espressif/esptool-legacy-flasher-stub/releases/download",
"TAG_URL": "https://github.com/espressif/esptool-legacy-flasher-stub/releases/tag",
"VERSION": "v1.6.0",
"VERSION": "v1.7.1",
"FILE_LIST": (
"esp32",
"esp32c2",

View File

@@ -269,7 +269,7 @@ def add_spi_flash_options(
def check_flash_size(esp: ESPLoader, address: int, size: int) -> None:
# Check if we are writing/erasing/reading past 16MB boundary
if (
not (esp.IS_STUB and esp.CHIP_NAME in ["ESP32-S3", "ESP32-P4"])
not (esp.IS_STUB and esp.CHIP_NAME in ["ESP32-S3", "ESP32-P4", "ESP32-C5"])
and address + size > 0x1000000
):
raise FatalError(

View File

@@ -1179,7 +1179,7 @@ def _set_flash_parameters(esp, flash_size="keep"):
esp.flash_set_parameters(flash_size_bytes(flash_size))
# Check if stub/ROM supports chosen flash size
if (
not (esp.IS_STUB and esp.CHIP_NAME in ["ESP32-S3", "ESP32-P4"])
not (esp.IS_STUB and esp.CHIP_NAME in ["ESP32-S3", "ESP32-P4", "ESP32-C5"])
and flash_size_bytes(flash_size) > 16 * 1024 * 1024
):
log.note(

View File

@@ -1,3 +1,3 @@
# Licensing
The binaries in JSON format distributed in this directory are released as Free Software under GNU General Public License Version 2 or later. They were released at https://github.com/espressif/esptool-legacy-flasher-stub/releases/tag/v1.6.0 from where the sources can be obtained.
The binaries in JSON format distributed in this directory are released as Free Software under GNU General Public License Version 2 or later. They were released at https://github.com/espressif/esptool-legacy-flasher-stub/releases/tag/v1.7.1 from where the sources can be obtained.

File diff suppressed because one or more lines are too long