From 51ef2a1d29c738d5e826deca1248d71bf30c829e Mon Sep 17 00:00:00 2001 From: Me No Dev Date: Tue, 7 Jan 2025 18:01:12 +0200 Subject: [PATCH] fix(platform): Improve firmware size calculation (#10820) * fix(platform): Improve firmware size calculation It will still have a couple of hundred of bytes difference * fix(build): Change partition used for UploadHugeFile --- libraries/WebServer/examples/UploadHugeFile/ci.json | 1 + platform.txt | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libraries/WebServer/examples/UploadHugeFile/ci.json b/libraries/WebServer/examples/UploadHugeFile/ci.json index 618e46bd2..cbdd28f77 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" diff --git a/platform.txt b/platform.txt index db4ab69df..cc9608a4f 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 ## ---------------------------------