Skip to content

Commit 29b9818

Browse files
authored
Merge pull request #362 from facchinm/fix_rp2040_size_calculation
Fix binary size calculation on rp2040
2 parents 634b834 + 003d157 commit 29b9818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ recipe.objcopy.hex.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf
9999
## Compute size
100100
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
101101
recipe.size.regex.data=^(?:\.data|\.bss)\s+([0-9]+).*
102-
recipe.size.regex=^(?:\.data|\.text)\s+([0-9]+).*
102+
recipe.size.regex=^(?:\.data|\.text)\S*?\s+([0-9]+).*
103103

104104
## Save hex
105105
recipe.output.tmp_file={build.project_name}.bin

0 commit comments

Comments
 (0)