diff --git a/platform.txt b/platform.txt index 3aa88ef48..0a860df33 100644 --- a/platform.txt +++ b/platform.txt @@ -117,7 +117,8 @@ recipe.output.save_file={build.project_name}.{build.variant}.{build.preferred_ou ## Compute size recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf" -recipe.size.regex=\.text\s+([0-9]+).* +recipe.size.regex=^(?:\.text|\.data|)\s+([0-9]+).* +recipe.size.regex.data=^(?:\.data|\.bss)\s+([0-9]+).* # Upload/Debug tools # ------------------