Skip to content

Commit 08a3bc3

Browse files
committed
Declare command for checking memory usage
1 parent 7346461 commit 08a3bc3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

builder/main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ def _get_board_f_flash(env):
141141
#
142142

143143
MKSPIFFSTOOL="mkspiffs",
144+
145+
SIZEPROGREGEXP=r"^(?:\.irom0\.text|\.text|\.data|\.rodata|)\s+([0-9]+).*",
146+
SIZEDATAREGEXP=r"^(?:\.data|\.rodata|\.bss)\s+([0-9]+).*",
147+
SIZECHECKCMD="$SIZETOOL -A -d $SOURCES",
144148
SIZEPRINTCMD='$SIZETOOL -B -d $SOURCES',
145149

146150
PROGSUFFIX=".elf"

0 commit comments

Comments
 (0)