From 003d157301fc9136b2d8b2cbbbd5686e4fd7ccf8 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Wed, 24 Nov 2021 10:36:37 +0100 Subject: [PATCH] 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 --- platform.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform.txt b/platform.txt index b80c19ae6..7bd234787 100644 --- a/platform.txt +++ b/platform.txt @@ -99,7 +99,7 @@ recipe.objcopy.hex.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compiler.elf ## Compute size recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf" recipe.size.regex.data=^(?:\.data|\.bss)\s+([0-9]+).* -recipe.size.regex=^(?:\.data|\.text)\s+([0-9]+).* +recipe.size.regex=^(?:\.data|\.text)\S*?\s+([0-9]+).* ## Save hex recipe.output.tmp_file={build.project_name}.bin