mirror of
https://github.com/espressif/esptool.git
synced 2025-10-19 11:43:48 +08:00
feat(esp32c5): Add support for >16 MB flash sizes
This commit is contained in:
@@ -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",
|
||||
|
@@ -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(
|
||||
|
@@ -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(
|
||||
|
@@ -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
Reference in New Issue
Block a user