diff --git a/tools/memap.py b/tools/memap.py index 132e12e061..16ed2645ba 100644 --- a/tools/memap.py +++ b/tools/memap.py @@ -280,7 +280,10 @@ class _ArmccParser(_Parser): """ # noqa: E501 test_re = re.match(self.RE, line) - if test_re: + if ( + test_re + and "ARM_LIB_HEAP" not in line + ): size = int(test_re.group(2), 16) if test_re.group(4) == 'RO':