Skip to content

Commit 003d157

Browse files
committed
Fix binary size calculation on rp2040
RP2040 linker splits the .text section into different lines (one per object) so the regex must be updated to take this into account
1 parent b14a86a commit 003d157

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)