Skip to main content
tarzan2
Associate III
January 9, 2018
Question

crypto lib - VFP error

  • January 9, 2018
  • 1 reply
  • 751 views
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

This topic has been closed for replies.

1 reply

AvaTar
Senior III
January 9, 2018
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.