Skip to main content
bkorkmazer
Associate
April 10, 2020
Question

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.

  • April 10, 2020
  • 3 replies
  • 958 views

..

This topic has been closed for replies.

3 replies

Tesla DeLorean
Guru
April 10, 2020

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 VenmoUp vote any posts that you find helpful, it shows what's working..
bkorkmazer
Associate
April 10, 2020

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

Thank you

Tesla DeLorean
Guru
April 10, 2020

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 VenmoUp vote any posts that you find helpful, it shows what's working..
Nikita91
Lead II
April 10, 2020

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?