From 5d55032be83b4d504b3357fa7c641341227a6c8a Mon Sep 17 00:00:00 2001 From: WeAct Studio <57818792+WeActStudio@users.noreply.github.com> Date: Tue, 23 Aug 2022 22:51:10 +0800 Subject: [PATCH] fix not report size --- platform.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/platform.txt b/platform.txt index 9968a51..67bac51 100644 --- a/platform.txt +++ b/platform.txt @@ -51,9 +51,10 @@ recipe.objcopy.eep.pattern= recipe.objcopy.hex.pattern="{compiler.path}{compiler.hex.cmd}" {compiler.hex.flags} "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.hex" -recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf" - -recipe.size.regex=/.text/s+([0-9]+).* +## Compute size +recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf" +recipe.size.regex=^(?:\.text|\.data|\.rodata|\.text.align|\.ARM.exidx)\s+([0-9]+).* +recipe.size.regex.data=^(?:\.data|\.bss|\.noinit)\s+([0-9]+).* # Uploader tools