Skip to main content
HPhar.1
Associate
December 26, 2023
Solved

flags to use to enable FPU on STM32H5 MCUs

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 ? 

This topic has been closed for replies.
AScha.3
AScha.3Best answer
Super User
December 26, 2023

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 on " Best Answer ".

2 replies

AScha.3
AScha.3Best answer
Super User
December 26, 2023

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 on " Best Answer ".
HPhar.1
HPhar.1Author
Associate
December 26, 2023

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.