cancel
Showing results for 
Search instead for 
Did you mean: 

Hello everyone, My question about FPU. I wanna use stm32f429 with FPU. How can I this? I activated it. Do I should do anything else? Do I need write special code for use FPU? I wish you good work.

bkorkmazer
Associate
 
4 REPLIES 4

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.​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
bkorkmazer
Associate

I activated the selection box. Do I need to do anything else except that?

Thank you

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​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Nikita91
Lead II

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?