Skip to content

Commit 98ac635

Browse files
modified size calulation
1 parent eedd3cf commit 98ac635

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

platform.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" -Wl,--start-group
7070

7171
recipe.objcopy.hex.pattern={tools.CubeCellelftool.cmd} "{compiler.path}{compiler.objcopy.cmd}" "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.hex" "{build.path}/{build.project_name}.cyacd"
7272

73-
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
74-
recipe.size.regex=\.text\s+([0-9]+).*
73+
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.hex"
74+
recipe.size.regex=Total\s+([0-9]+).*
7575

7676
tools.CubeCellflash.upload.protocol=
7777
tools.CubeCellflash.upload.params.verbose=

tools/platform.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ recipe.c.combine.pattern="{compiler.path}{compiler.c.elf.cmd}" -Wl,--start-group
7070

7171
recipe.objcopy.hex.pattern={tools.CubeCellelftool.cmd} "{compiler.path}{compiler.objcopy.cmd}" "{build.path}/{build.project_name}.elf" "{build.path}/{build.project_name}.hex" "{build.path}/{build.project_name}.cyacd"
7272

73-
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.elf"
74-
recipe.size.regex=\.text\s+([0-9]+).*
73+
recipe.size.pattern="{compiler.path}{compiler.size.cmd}" -A "{build.path}/{build.project_name}.hex"
74+
recipe.size.regex=Total\s+([0-9]+).*
7575

7676
tools.CubeCellflash.upload.protocol=
7777
tools.CubeCellflash.upload.params.verbose=

0 commit comments

Comments
 (0)