Skip to content

Instantly share code, notes, and snippets.

@wdwalker
Created March 16, 2017 18:08
Show Gist options
  • Save wdwalker/400a5ff83a4ff3f4d0499594c5b5a9c3 to your computer and use it in GitHub Desktop.
Save wdwalker/400a5ff83a4ff3f4d0499594c5b5a9c3 to your computer and use it in GitHub Desktop.
Bare Bones Blinky Memory Map (built with mbed tools)
python mbed-os/tools/memap.py -t GCC_ARM -d BUILD/LPC1768/GCC_ARM/BBB.map
+---------------------------------------+-------+-------+------+
| Module | .text | .data | .bss |
+---------------------------------------+-------+-------+------+
| Fill | 66 | 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-callocr.o) | 96 | 0 | 0 |
| Misc/libc.a(lib_a-closer.o) | 36 | 0 | 0 |
| Misc/libc.a(lib_a-ctype_.o) | 257 | 0 | 0 |
| Misc/libc.a(lib_a-dtoa.o) | 3964 | 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-locale.o) | 12 | 364 | 0 |
| Misc/libc.a(lib_a-localeconv.o) | 28 | 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) | 1348 | 1040 | 52 |
| Misc/libc.a(lib_a-mbtowc_r.o) | 44 | 0 | 0 |
| Misc/libc.a(lib_a-memchr-stub.o) | 140 | 0 | 0 |
| Misc/libc.a(lib_a-memcpy.o) | 236 | 0 | 0 |
| Misc/libc.a(lib_a-memmove.o) | 200 | 0 | 0 |
| Misc/libc.a(lib_a-memset.o) | 156 | 0 | 0 |
| Misc/libc.a(lib_a-mprec.o) | 1780 | 0 | 0 |
| Misc/libc.a(lib_a-readr.o) | 44 | 0 | 0 |
| Misc/libc.a(lib_a-reallocr.o) | 876 | 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-strlen-stub.o) | 92 | 0 | 0 |
| Misc/libc.a(lib_a-svfiprintf.o) | 252 | 0 | 0 |
| Misc/libc.a(lib_a-svfprintf.o) | 5466 | 0 | 0 |
| Misc/libc.a(lib_a-vsprintf.o) | 76 | 0 | 0 |
| Misc/libc.a(lib_a-wctomb_r.o) | 24 | 0 | 0 |
| Misc/libc.a(lib_a-writer.o) | 44 | 0 | 0 |
| Misc/libgcc.a(_aeabi_uldivmod.o) | 48 | 0 | 0 |
| Misc/libgcc.a(_arm_addsubdf3.o) | 880 | 0 | 0 |
| Misc/libgcc.a(_arm_cmpdf2.o) | 272 | 0 | 0 |
| Misc/libgcc.a(_arm_fixdfsi.o) | 80 | 0 | 0 |
| Misc/libgcc.a(_arm_muldivdf3.o) | 1060 | 0 | 0 |
| Misc/libgcc.a(_arm_unorddf2.o) | 44 | 0 | 0 |
| Misc/libgcc.a(_dvmd_tls.o) | 4 | 0 | 0 |
| Misc/libgcc.a(_udivmoddi4.o) | 732 | 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 | 222 | 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 | 16 | 0 | 0 |
| platform/mbed_assert.o | 85 | 0 | 0 |
| platform/mbed_board.o | 376 | 0 | 0 |
| platform/mbed_critical.o | 253 | 0 | 5 |
| platform/mbed_error.o | 22 | 0 | 0 |
| platform/mbed_interface.o | 4 | 0 | 0 |
| platform/mbed_retarget.o | 548 | 4 | 264 |
| platform/mbed_semihost_api.o | 38 | 0 | 0 |
| platform/mbed_wait_api_rtos.o | 58 | 0 | 0 |
| rtos/Thread.o | 20 | 0 | 4 |
| rtos/rtos_idle.o | 18 | 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 | 239 | 0 | 0 |
| targets/TARGET_NXP/pinmap.o | 245 | 0 | 0 |
| targets/TARGET_NXP/serial_api.o | 2402 | 0 | 240 |
| 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 | 32362 | 2516 | 7524 |
+---------------------------------------+-------+-------+------+
Allocated Heap: 2048 bytes
Allocated Stack: 3072 bytes
Total Static RAM memory (data + bss): 10040 bytes
Total RAM memory (data + bss + heap + stack): 15160 bytes
Total Flash memory (text + data + misc): 34878 bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment