2020-04-10 10:28 AM
2020-04-10 11:41 AM
In Keil there is a selection box to use the FPU, at that point the compiler uses the appropriate intrinsics, and links to libraries with further support for more complex functions.
The FPU in the CM4F is only for 32-bit floats, it doesn't support doubles, or transcendentals.
GNU/GCC has command line options, and libraries too.
2020-04-10 11:59 AM
I activated the selection box. Do I need to do anything else except that?
Thank you
2020-04-10 03:49 PM
I think I was pretty clear and concise.
If you doubt, generate a listing file with something like Keil's FromELF application and inspect the generated code and libraries.
ie
FromELF -csd foo.axf >foo.let
Code in SystemInit() typically enables the FPU coprocessor
2020-04-10 03:50 PM
Do you use an RTOS ?
Does the RTOS manage the float registers on context switch?
Does a single task use floats or more than one?