diff options
| author | Dan Halbert <halbert@adafruit.com> | 2019-12-18 12:41:06 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-18 12:41:06 -0500 |
| commit | 483a6a9a005906bf86dd4857abfe0f9b1314d3a1 (patch) | |
| tree | 8f436285d89d69cc3695ae2fcdaa09742cf9d5f5 /tools/build_memory_info.py | |
| parent | 8d4384814a4d15cea297eeb08126740d71e6d4d4 (diff) | |
| parent | 6265ee0e8ce0bf79f3cd73be4b15dc631a403a8b (diff) | |
Merge pull request #2407 from dhalbert/4.1.x-increase-cpx-stack-update-frozen4.1.2
4.1.x increase cpx stack update frozen
Diffstat (limited to 'tools/build_memory_info.py')
| -rw-r--r-- | tools/build_memory_info.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/build_memory_info.py b/tools/build_memory_info.py index a8f84bbb6..f3242e2aa 100644 --- a/tools/build_memory_info.py +++ b/tools/build_memory_info.py @@ -61,10 +61,11 @@ for region in regions: space = M_PATTERN.sub(M_REPLACE, space) regions[region] = eval(space) +ram_region = regions["RAM"] free_flash = regions["FLASH"] - text - data free_ram = regions["RAM"] - data - bss print(free_flash, "bytes free in flash out of", regions["FLASH"], "bytes (", regions["FLASH"] / 1024, "kb ).") -print(free_ram, "bytes free in ram for stack out of", regions["RAM"], "bytes (", regions["RAM"] / 1024, "kb ).") +print("{} bytes free in ram for stack and heap out of {} bytes ({}kB).".format(free_ram, ram_region, ram_region / 1024)) print() # Check that we have free flash space. GCC doesn't fail when the text + data |
