cancel
Showing results for 
Search instead for 
Did you mean: 

How do I activate the FPU on F411?

JSILV.2
Senior

I am using the F411 by CUBE IDE.

I enable the CUBE's library of DSP and it was accomplished naive. Even after I inserted <include "arm_math.h"> the BUILD worked perfectly. But, after I copied one arm_FIR_filter_example from GITHUB, the compilation chashed showing that "I am using PFU instruction on a CPU without FPU". But this CPU HAS FPU and it seems enabled as the post: https://community.st.com/s/question/0D53W000013p53cSAA/how-to-use-fpu-in-stm32f407

Please, do someone knows what should I add to this environment in order to build perfectly?

The path & symbols: ARM_MATH_CM4 (from properties)

MCU GCC Assembler:-mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16

It seems correctly configured by CUBE itself, but the BUILD does not finish sucsessfully.

Regards.

13 REPLIES 13
JSILV.2
Senior

Thanks for your reply.

I supposed that I had activated the FPU as my enclosed picture (in fact the CUBE did it itself).

I will just test your sent file and see what it will be.

I tested it, your sent code, And it runs perfect. But I did not find my mistake until now.

If you don't mind to dig inside of my broken test program...I enclosed it

Regards, regards...

JSILV.2
Senior
 
JSILV.2
Senior

That is the enclosed file.

Since my last post it was deleted(?).

Regards.

JSILV.2
Senior

If someone be around with the problem of "FPU not present" error on Building, try this one in the picture.

Regards.