From c69e77cf54e9f83665e9dff8cd3b2080f10ca74e Mon Sep 17 00:00:00 2001 From: Maciej Bocianski Date: Wed, 19 Feb 2020 08:15:00 +0100 Subject: [PATCH] fix arm compiler static ram memory statistics don't count ARM_LIB_HEAP in static RAM pool --- tools/memap.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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':