Skip to content

Commit 7c564e8

Browse files
Merge pull request #166 from suchmememanyskill/dev
Hopefully fix webflash for s3
2 parents e6b5d17 + 5c0ee08 commit 7c564e8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ci.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,19 @@ def get_manifest(base_path : str, device_name : str):
3434
"parts": [
3535
{
3636
"path": f"{base_path}/bootloader.bin",
37-
"offset": 4096
37+
"offset": 0 if device_name in ESP_S3_CHIPS else 0x1000
3838
},
3939
{
4040
"path": f"{base_path}/partitions.bin",
41-
"offset": 32768
41+
"offset": 0x8000
4242
},
4343
{
4444
"path": f"{base_path}/boot_app0.bin",
45-
"offset": 57344
45+
"offset": 0xe000
4646
},
4747
{
4848
"path": f"{base_path}/firmware.bin",
49-
"offset": 65536
49+
"offset": 0x10000
5050
}
5151
]
5252
}
@@ -83,7 +83,7 @@ def add_configuration(board : str):
8383
shutil.copy(os.path.join(os.path.expanduser("~"), ".platformio/packages/framework-arduinoespressif32/tools/partitions/boot_app0.bin"), f"{port_path}/boot_app0.bin")
8484
os.chdir(port_path)
8585
if (port in ESP_S3_CHIPS):
86-
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)
86+
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)
8787
else:
8888
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)
8989

0 commit comments

Comments
 (0)