lpcware

How to use floating point hard ABI

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by DieterNiesel on Fri Jul 03 05:34:02 MST 2015
When I compile the project I get this error message.
I used the flags for FPU Hard ABI in the compiler settings

Building target: pnb54102m.axf
Invoking: MCU Linker
arm-none-eabi-gcc -nostdlib -L"F:\proj\lpcv7\lpc_chip_5410x\Debug" -L"F:\proj\lpcv7\lpc_chip_5410x\libs" -Xlinker -Map="pnb54102m.map" -Xlinker --gc-sections -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -T "pnb54102m_Debug.ld" -o "pnb54102m.axf"  ./src/boot_multicore_slave.o ./src/pnb54102m.o ./src/startup_lpc5410x.o ./src/sysinit.o  F:/proj/lpcv7/pnb54102s/Debug/pnb54102s.axf.o -llpc_chip_5410x -lpower
e:/tools/lpcxpresso_7.8.0_426/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: error: pnb54102m.axf uses VFP register arguments, F:\proj\lpcv7\lpc_chip_5410x\libs\libpower.a(power_library.o) does not
e:/tools/lpcxpresso_7.8.0_426/lpcxpresso/tools/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe: failed to merge target specific data of file F:\proj\lpcv7\lpc_chip_5410x\libs\libpower.a(power_library.o)
collect2.exe: error: ld returned 1 exit status
make: *** [pnb54102m.axf] Error 1

As I understand the error message the libpower.a which is part of the chip_5410x is compiled with soft_abi.
There is no source fpr this lib and no hard_abi version.
What would be a solution ?

Outcomes