Skip to content

Commit

Permalink
fix(platform): Improve firmware size calculation (#10820)
Browse files Browse the repository at this point in the history
* fix(platform): Improve firmware size calculation

It will still have a couple of hundred of bytes difference

* fix(build): Change partition used for UploadHugeFile
  • Loading branch information
me-no-dev authored Jan 7, 2025
1 parent e305a48 commit 51ef2a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions libraries/WebServer/examples/UploadHugeFile/ci.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"fqbn_append": "PartitionScheme=huge_app",
"requires_any": [
"CONFIG_SOC_WIFI_SUPPORTED=y",
"CONFIG_ESP_WIFI_REMOTE_ENABLED=y"
Expand Down
4 changes: 2 additions & 2 deletions platform.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
## ---------------------------------
Expand Down

0 comments on commit 51ef2a1

Please sign in to comment.