Skip to content

Commit 1857cce

Browse files
Add size regex for used RAM
This was previously omitted, causing arduino-builder to not report the amount of RAM used. This adds the regex, based on the regex used by AVR (omitting the .noinit section, which is not supported by the SAMD linker scripts).
1 parent f7b24ec commit 1857cce

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

platform.txt

+1
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ recipe.output.save_file={build.project_name}.{build.variant}.{build.preferred_ou
118118
## Compute size
119119
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
120120
recipe.size.regex=^(?:\.text|\.data|)\s+([0-9]+).*
121+
recipe.size.regex.data=^(?:\.data|\.bss)\s+([0-9]+).*
121122

122123
# Upload/Debug tools
123124
# ------------------

0 commit comments

Comments
 (0)