Skip to main content
Explorer
December 26, 2023
Solved

flags to use to enable FPU on STM32H5 MCUs

  • December 26, 2023
  • 2 replies
  • 1626 views

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.
    Best answer by AScha.3

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

    in menu -> project -> properties :

    AScha3_0-1703592307606.png

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

    2 replies

    AScha.3Answer
    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 

    HPhar.1Author
    Explorer
    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.