Skip to content

Commit 6e8db4f

Browse files
maciejbocianskiJanne Kiiskila
authored andcommitted
fix arm compiler static ram memory statistics
don't count ARM_LIB_HEAP in static RAM pool Original Mbed OS PR[#1256](#1246) (cherry picked from commit c69e77c) Signed-off-by: Janne Kiiskila <[email protected]>
1 parent b6370b4 commit 6e8db4f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/memap.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,10 @@ def parse_section(self, line):
280280
""" # noqa: E501
281281
test_re = re.match(self.RE, line)
282282

283-
if test_re:
283+
if (
284+
test_re
285+
and "ARM_LIB_HEAP" not in line
286+
):
284287
size = int(test_re.group(2), 16)
285288

286289
if test_re.group(4) == 'RO':

0 commit comments

Comments
 (0)