From 3f68900805e373da96b7d2e2e77e786a0d236964 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Tue, 7 Jan 2025 11:41:54 +0200 Subject: [PATCH 1/2] fix(platform): Improve firmware size calculation It will still have a couple of hundred of bytes difference --- platform.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform.txt b/platform.txt index 44353ab3bf4..51f7808ac72 100644 --- a/platform.txt +++ b/platform.txt @@ -185,8 +185,8 @@ recipe.output.save_file={build.project_name}.{build.variant}.bin ## Compute size recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf" -recipe.size.regex=^(?:\.iram0\.text|\.iram0\.vectors|\.dram0\.data|\.flash\.text|\.flash\.rodata|)\s+([0-9]+).* -recipe.size.regex.data=^(?:\.dram0\.data|\.dram0\.bss|\.noinit)\s+([0-9]+).* +recipe.size.regex=^(?:\.iram0\.text|\.iram0\.vectors|\.dram0\.data|\.dram1\.data|\.flash\.text|\.flash\.rodata|\.flash\.appdesc|\.flash\.init_array|\.eh_frame|)\s+([0-9]+).* +recipe.size.regex.data=^(?:\.dram0\.data|\.dram0\.bss|\.dram1\.data|\.dram1\.bss|\.noinit)\s+([0-9]+).* ## Required discoveries and monitors ## --------------------------------- From 5f9cb65efac0a6760ca0003d4c3b2acc6d6b2685 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Tue, 7 Jan 2025 12:26:28 +0200 Subject: [PATCH 2/2] fix(build): Change partition used for UploadHugeFile --- libraries/WebServer/examples/UploadHugeFile/ci.json | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/WebServer/examples/UploadHugeFile/ci.json b/libraries/WebServer/examples/UploadHugeFile/ci.json index 618e46bd244..cbdd28f773d 100644 --- a/libraries/WebServer/examples/UploadHugeFile/ci.json +++ b/libraries/WebServer/examples/UploadHugeFile/ci.json @@ -1,4 +1,5 @@ { + "fqbn_append": "PartitionScheme=huge_app", "requires_any": [ "CONFIG_SOC_WIFI_SUPPORTED=y", "CONFIG_ESP_WIFI_REMOTE_ENABLED=y"