Skip to content

Commit 3f68900

Browse files
committed
fix(platform): Improve firmware size calculation
It will still have a couple of hundred of bytes difference
1 parent 9eb7dc6 commit 3f68900

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: 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)