using some big flags
Code: Select all
-mcpu=cortex-m4 -march=armv7e-m+fp
Code: Select all
-mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant
Code: Select all
# this can be overriden in boards.txt
build.mcu=cortex-m4
build.cpu_flags=-mcpu=cortex-m4 -march=armv7e-m+fp -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant
Code: Select all
build.common_flags=-mcpu=cortex-m4 -march=armv7e-m+fp -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -mthumb -D__STM32F4__ -DSTM32F4

i know why, i'd dig that out from my makefile
need to add
Code: Select all
-L $(ARM_NONE_EABI_PATH)/arm-none-eabi/lib/thumb/v7e-m+fp
try
Code: Select all
compiler.ldflags={build.flags.ldspecs} -L{runtime.tools.arm-none-eabi-gcc.path}/arm-none-eabi/lib/thumb/v7e-m+fp
try
Code: Select all
compiler.c.elf.extra_flags="-L{build.variant.path}/ld" "-Wl,--wrap=atexit,--wrap=__cxa_atexit,--wrap=exit" -L{runtime.tools.arm-none-eabi-gcc.path}/arm-none-eabi/lib/thumb/v7e-m+fp