summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2019-12-06 15:18:20 -0500
committerDan Halbert <halbert@halwitz.org>2019-12-06 15:18:20 -0500
commitd628d2a261bb28b84c6b257a990bd9a30cbe369c (patch)
treeb5edf537960e407db7122f019dc365b787849088 /tools
parenta0721fc94a372c6ee40ae0c358942309de2b94c0 (diff)
atmel-samd working
Diffstat (limited to 'tools')
-rw-r--r--tools/build_memory_info.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/build_memory_info.py b/tools/build_memory_info.py
index 0dcd5f6e4..f128561ab 100644
--- a/tools/build_memory_info.py
+++ b/tools/build_memory_info.py
@@ -41,6 +41,7 @@ data = 0
bss = 0
# stdin is the linker output.
for line in sys.stdin:
+ print(line)
line = line.strip()
if not line.startswith("text"):
text, data, bss = map(int, line.split()[:3])
@@ -64,7 +65,7 @@ for region in regions:
free_flash = regions["FLASH_FIRMWARE"] - text - data
free_ram = regions["RAM"] - data - bss
print("{} bytes free in flash firmware space out of {} bytes ({}kB).".format(free_flash, regions["FLASH_FIRMWARE"], regions["FLASH_FIRMWARE"] / 1024))
-print("{} bytes free in ram for stack out of {} bytes ({}kB).".format(free_ram, regions["RAM"], regions["RAM"] / 1024))
+print("{} bytes free in ram for heap out of {} bytes ({}kB).".format(free_ram, regions["RAM"], regions["RAM"] / 1024))
print()
# Check that we have free flash space. GCC doesn't fail when the text + data