mbed.org

github.com/ARMmbed/mbed-os

STM32

Creating Console Output

Handbook

Introduction to the mbed OS 5 Handbook
mbed OS API References
Explore mbed

Old Handbook

Handbook
mbed SDK

GCC

Old:
# LD = 'arm-none-eabi-gcc' \
# '-Wl,--gc-sections' \
# '-Wl,--wrap,main' \
# '-Wl,--wrap,_malloc_r' \
# '-Wl,--wrap,_free_r' \
# '-Wl,--wrap,_realloc_r' \
# '-Wl,--wrap,_calloc_r' \
# '-Wl,--wrap,exit' \
# '-Wl,--wrap,atexit' \
# '-mcpu=cortex-m4' '-mthumb' '-mfpu=fpv4-sp-d16' '-mfloat-abi=softfp'

New (without wrap things):
LD = 'arm-none-eabi-gcc' '-Wl,--gc-sections' '-mcpu=cortex-m4' '-mthumb' '-mfpu=fpv4-sp-d16' '-mfloat-abi=softfp'

[...]

Old:
# LD_FLAGS := \
# -Wl,--gc-sections \
# -Wl,--wrap,main \
# -Wl,--wrap,_malloc_r \
# -Wl,--wrap,_free_r \
# -Wl,--wrap,_realloc_r \
# -Wl,--wrap,_calloc_r \
# -Wl,--wrap,exit \
# -Wl,--wrap,atexit \
# -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp 

New (without wrap things):
LD_FLAGS := -Wl,--gc-sections -mcpu=cortex-m4 -mthumb -mfpu=fpv4-sp-d16 -mfloat-abi=softfp
# LD_FLAGS :=
# -Wl,--gc-sections
# -Wl,--wrap,main
# -Wl,--wrap,_malloc_r
# -Wl,--wrap,_free_r
# -Wl,--wrap,_realloc_r
# -Wl,--wrap,_calloc_r
# -Wl,--wrap,exit
# -Wl,--wrap,atexit
# -mcpu=cortex-m3 -mthumb

LD_FLAGS :=-Wl,--gc-sections -mcpu=cortex-m3 -mthumb
LD_SYS_LIBS :=-Wl,--start-group -lstdc++ -lsupc++ -lm -lc -lgcc -lnosys -Wl,--end-group

Leave a Reply

Your email address will not be published. Required fields are marked *