Skip to content

Commit 51ef2a1

Browse files
authored
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
1 parent e305a48 commit 51ef2a1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

libraries/WebServer/examples/UploadHugeFile/ci.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"fqbn_append": "PartitionScheme=huge_app",
23
"requires_any": [
34
"CONFIG_SOC_WIFI_SUPPORTED=y",
45
"CONFIG_ESP_WIFI_REMOTE_ENABLED=y"

platform.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ recipe.output.save_file={build.project_name}.{build.variant}.bin
185185

186186
## Compute size
187187
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
188-
recipe.size.regex=^(?:\.iram0\.text|\.iram0\.vectors|\.dram0\.data|\.flash\.text|\.flash\.rodata|)\s+([0-9]+).*
189-
recipe.size.regex.data=^(?:\.dram0\.data|\.dram0\.bss|\.noinit)\s+([0-9]+).*
188+
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]+).*
189+
recipe.size.regex.data=^(?:\.dram0\.data|\.dram0\.bss|\.dram1\.data|\.dram1\.bss|\.noinit)\s+([0-9]+).*
190190

191191
## Required discoveries and monitors
192192
## ---------------------------------

0 commit comments

Comments
 (0)