cancel
Showing results for 
Search instead for 
Did you mean: 

crypto lib - VFP error

tarzan2
Associate II
Posted on January 09, 2018 at 14:27

Hello

I would like to use the crypto lib with gcc (eclipse/ system workbench).

The compiler returns this:

error: xxx.elf uses VFP register arguments, libSTM32CryptographicV3.0.0_CM4_GCC_ot.a(crypto.o) does not.

I'm not sure to understand. My program is obviously using the hardware FPU. The library may have been compiled in soft FPU mode. I have no idea about the solution.

Thank you for your help

1 REPLY 1
AvaTar
Lead
Posted on January 09, 2018 at 15:44

There is a difference in 'softfp' and 'hard', even if both use the FPU.

The first ABI option passes parameters in core registers, the second option in FPU regs.

All parts of your application need to use the same ABI.