cancel
Showing results for 
Search instead for 
Did you mean: 

flags to use to enable FPU on STM32H5 MCUs

HPhar.1
Associate

In this document it's stated that STM32H5 devices implements the FPv5 floating-point extensions.
From there, how do I know the proper flags to pass to gcc to enable the FPU?
 -mfpu=fpv5-sp-d16
 -mfpu=fpv5-d16

other ? 

1 ACCEPTED SOLUTION

Accepted Solutions
AScha.3
Chief II

You are using...CubeIDE ? ( no info given)

in menu -> project -> properties :

AScha3_0-1703592307606.png

->  -mfpu=fpv5-sp-d16 -mfloat-abi=hard 

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

2 REPLIES 2
AScha.3
Chief II

You are using...CubeIDE ? ( no info given)

in menu -> project -> properties :

AScha3_0-1703592307606.png

->  -mfpu=fpv5-sp-d16 -mfloat-abi=hard 

If you feel a post has answered your question, please click "Accept as Solution".
HPhar.1
Associate

Perfect thank you. I'm having trouble installing CubeIDE on my PC, but thought I would easily find the information somewhere. I Accept the Solution but I would like to know if this is documented somewhere.