Skip to content

Instantly share code, notes, and snippets.

@wdwalker
Created March 17, 2017 12:06
Show Gist options
  • Save wdwalker/6d7c2fe3457131c4550d8faec307c53a to your computer and use it in GitHub Desktop.
Save wdwalker/6d7c2fe3457131c4550d8faec307c53a to your computer and use it in GitHub Desktop.
Bare Bones Blinky Memory Map (tuned mbed)
python ~/tmp/BBB/mbed-os/tools/memap.py -d -t GCC_ARM ./BUILD/LPC1768/GCC_ARM/BBB.map
+--------------------------------------+-------+-------+------+
| Module | .text | .data | .bss |
+--------------------------------------+-------+-------+------+
| Fill | 2 | 0 | 3 |
| Misc/crt0.o | 116 | 0 | 0 |
| Misc/crtbegin.o | 108 | 8 | 28 |
| Misc/crtend.o | 4 | 0 | 0 |
| Misc/crti.o | 8 | 0 | 0 |
| Misc/crtn.o | 16 | 0 | 0 |
| Misc/libc_nano.a(lib_a-init.o) | 72 | 0 | 0 |
| Misc/libc_nano.a(lib_a-memset.o) | 16 | 0 | 0 |
| Misc/main.o | 144 | 0 | 4 |
| hal/mbed_ticker_api.o | 70 | 0 | 0 |
| hal/mbed_us_ticker_api.o | 40 | 0 | 8 |
| platform/mbed_board.o | 20 | 0 | 0 |
| platform/mbed_critical.o | 56 | 0 | 5 |
| platform/mbed_retarget.o | 52 | 0 | 0 |
| platform/mbed_wait_api_no_rtos.o | 32 | 0 | 0 |
| targets/TARGET_NXP/cmsis_nvic.o | 64 | 0 | 0 |
| targets/TARGET_NXP/startup_LPC17xx.o | 272 | 0 | 0 |
| targets/TARGET_NXP/system_LPC17xx.o | 164 | 4 | 0 |
| targets/TARGET_NXP/us_ticker.o | 168 | 0 | 4 |
| Subtotals | 1424 | 12 | 52 |
+--------------------------------------+-------+-------+------+
Allocated Heap: 2048 bytes
Allocated Stack: 3072 bytes
Total Static RAM memory (data + bss): 64 bytes
Total RAM memory (data + bss + heap + stack): 5184 bytes
Total Flash memory (text + data + misc): 1436 bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment