From 5c0ee08135965fa803edbdf426fe41c3afdcbae3 Mon Sep 17 00:00:00 2001 From: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com> Date: Sun, 9 Feb 2025 01:14:07 +0100 Subject: [PATCH] Hopefully fix webflash for s3 --- ci.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ci.py b/ci.py index 535cdf6..2aa9040 100644 --- a/ci.py +++ b/ci.py @@ -34,19 +34,19 @@ def get_manifest(base_path : str, device_name : str): "parts": [ { "path": f"{base_path}/bootloader.bin", - "offset": 4096 + "offset": 0 if device_name in ESP_S3_CHIPS else 0x1000 }, { "path": f"{base_path}/partitions.bin", - "offset": 32768 + "offset": 0x8000 }, { "path": f"{base_path}/boot_app0.bin", - "offset": 57344 + "offset": 0xe000 }, { "path": f"{base_path}/firmware.bin", - "offset": 65536 + "offset": 0x10000 } ] } @@ -83,7 +83,7 @@ for port in CYD_PORTS: shutil.copy(os.path.join(os.path.expanduser("~"), ".platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin"), f"{port_path}/boot_app0.bin") os.chdir(port_path) if (port in ESP_S3_CHIPS): - subprocess.run(["python3", "-m", "esptool", "--chip", "esp32s3", "merge_bin", "-o", "merged_firmware.bin", "--flash_mode", "qio", "--flash_freq", "80m", "--flash_size", "16MB", "0x1000", "bootloader.bin", "0x8000", "partitions.bin", "0xe000", "boot_app0.bin", "0x10000", "firmware.bin"], check=True) + subprocess.run(["python3", "-m", "esptool", "--chip", "esp32s3", "merge_bin", "-o", "merged_firmware.bin", "--flash_mode", "dio", "--flash_freq", "80m", "--flash_size", "16MB", "0x0000", "bootloader.bin", "0x8000", "partitions.bin", "0xe000", "boot_app0.bin", "0x10000", "firmware.bin"], check=True) else: subprocess.run(["python3", "-m", "esptool", "--chip", "esp32", "merge_bin", "-o", "merged_firmware.bin", "--flash_mode", "dio", "--flash_freq", "40m", "--flash_size", "4MB", "0x1000", "bootloader.bin", "0x8000", "partitions.bin", "0xe000", "boot_app0.bin", "0x10000", "firmware.bin"], check=True)