Skip to content

Instantly share code, notes, and snippets.

@wdwalker
Created March 16, 2017 20:53
Show Gist options
  • Save wdwalker/a234581a6cea012f471f34687d909065 to your computer and use it in GitHub Desktop.
Save wdwalker/a234581a6cea012f471f34687d909065 to your computer and use it in GitHub Desktop.
Bare Bones Blinky Memory Map (built with mbed tools using the release profile)
python mbed-os/tools/memap.py -d -t GCC_ARM BUILD/LPC1768/GCC_ARM/BBB.map
+---------------------------------------+-------+-------+------+
| Module | .text | .data | .bss |
+---------------------------------------+-------+-------+------+
| Fill | 41 | 4 | 8 |
| 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.a(lib_a-abs.o) | 8 | 0 | 0 |
| Misc/libc.a(lib_a-closer.o) | 36 | 0 | 0 |
| Misc/libc.a(lib_a-errno.o) | 12 | 0 | 0 |
| Misc/libc.a(lib_a-fclose.o) | 196 | 0 | 0 |
| Misc/libc.a(lib_a-fflush.o) | 432 | 0 | 0 |
| Misc/libc.a(lib_a-findfp.o) | 212 | 0 | 0 |
| Misc/libc.a(lib_a-freer.o) | 620 | 0 | 0 |
| Misc/libc.a(lib_a-fwalk.o) | 80 | 0 | 0 |
| Misc/libc.a(lib_a-impure.o) | 4 | 1068 | 0 |
| Misc/libc.a(lib_a-init.o) | 80 | 0 | 0 |
| Misc/libc.a(lib_a-lock.o) | 16 | 0 | 33 |
| Misc/libc.a(lib_a-lseekr.o) | 44 | 0 | 0 |
| Misc/libc.a(lib_a-mallocr.o) | 0 | 1040 | 44 |
| Misc/libc.a(lib_a-memcpy.o) | 236 | 0 | 0 |
| Misc/libc.a(lib_a-memset.o) | 156 | 0 | 0 |
| Misc/libc.a(lib_a-readr.o) | 44 | 0 | 0 |
| Misc/libc.a(lib_a-reent.o) | 0 | 0 | 4 |
| Misc/libc.a(lib_a-sbrkr.o) | 36 | 0 | 0 |
| Misc/libc.a(lib_a-stdio.o) | 136 | 0 | 0 |
| Misc/libc.a(lib_a-writer.o) | 44 | 0 | 0 |
| Misc/main.o | 144 | 0 | 4 |
| features/FEATURE_LWIP/lpc17_emac.o | 60 | 0 | 0 |
| features/FEATURE_LWIP/lwip_sys_arch.o | 20 | 0 | 0 |
| hal/mbed_gpio.o | 120 | 0 | 0 |
| hal/mbed_pinmap_common.o | 212 | 0 | 0 |
| hal/mbed_ticker_api.o | 70 | 0 | 0 |
| hal/mbed_us_ticker_api.o | 40 | 0 | 8 |
| platform/mbed_alloc_wrappers.o | 4 | 0 | 0 |
| platform/mbed_board.o | 120 | 0 | 0 |
| platform/mbed_critical.o | 56 | 0 | 5 |
| platform/mbed_error.o | 10 | 0 | 0 |
| platform/mbed_interface.o | 34 | 0 | 0 |
| platform/mbed_retarget.o | 548 | 4 | 264 |
| platform/mbed_semihost_api.o | 58 | 0 | 0 |
| platform/mbed_wait_api_rtos.o | 58 | 0 | 0 |
| rtos/Thread.o | 20 | 0 | 4 |
| rtos/rtos_idle.o | 20 | 4 | 0 |
| rtos/rtx/HAL_CM.o | 162 | 0 | 0 |
| rtos/rtx/HAL_CM3.o | 296 | 0 | 0 |
| rtos/rtx/RTX_Conf_CM.o | 341 | 20 | 6700 |
| rtos/rtx/rt_CMSIS.o | 1896 | 0 | 28 |
| rtos/rtx/rt_Event.o | 208 | 0 | 0 |
| rtos/rtx/rt_List.o | 492 | 0 | 48 |
| rtos/rtx/rt_Mailbox.o | 528 | 0 | 0 |
| rtos/rtx/rt_MemBox.o | 140 | 0 | 0 |
| rtos/rtx/rt_Mutex.o | 332 | 0 | 0 |
| rtos/rtx/rt_OsEventObserver.o | 0 | 0 | 4 |
| rtos/rtx/rt_Robin.o | 96 | 0 | 8 |
| rtos/rtx/rt_Semaphore.o | 110 | 0 | 0 |
| rtos/rtx/rt_System.o | 302 | 0 | 6 |
| rtos/rtx/rt_Task.o | 1208 | 0 | 72 |
| rtos/rtx/rt_Time.o | 6 | 0 | 4 |
| targets/TARGET_NXP/cmsis_nvic.o | 64 | 0 | 0 |
| targets/TARGET_NXP/gpio_api.o | 104 | 0 | 0 |
| targets/TARGET_NXP/pinmap.o | 140 | 0 | 0 |
| targets/TARGET_NXP/serial_api.o | 1916 | 0 | 240 |
| targets/TARGET_NXP/sleep.o | 36 | 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 | 13260 | 2152 | 7516 |
+---------------------------------------+-------+-------+------+
Allocated Heap: 2048 bytes
Allocated Stack: 3072 bytes
Total Static RAM memory (data + bss): 9668 bytes
Total RAM memory (data + bss + heap + stack): 14788 bytes
Total Flash memory (text + data + misc): 15412 bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment