Loading...
 

SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world. And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4.
You can get more information from the ac6-tools website and download (registration required) various documents highlighting:

System Workbench for STM32


Enable FPU in System Workbench for STM32

Hi all,
It would be great to enable Hardware FPU on F4 devices.
Which compiler flags or directives need to be enabled?
Thank you
Filippo

Hi Filippo,

I had this problem a while back using codesourcery, the flags that need to be enabled are

-mfpu=fpv4-sp-d16 -mfloat-abi=softfp

There was also an issue with the toolchain, I ended up switching it to the launchpad gnu arm toolchain with much success. I don’t know if this is even an issue with this toolchain since I have not tested it. If I get a chance I will create a project and try it out.

Thanks,
George


Hi George,
than you for the tip.
I made some tests and I tried your solution, it works!
Anyway I’ve been reading the difference between:


[+]

https://wiki.debian.org/ArmHardFloatPort/VfpComparisonQuestion
so when possible hard flag should be used.
If the projct does not use external libraries, is possible to use “hard” flag, but the flag has to be enabled in: GCC compiler, GCC Linker and GCC Assrmbler.
To do so, go to project properties (Alt + Enter), choose C/C++ Build and then settings, then add flags:
http://s16.postimg.org/olvegtf05/Untitled.pngQuestion

Bye Filippo

France

Hi Filippo,

To add this kind of options, rather than modifying directly the command line pattern, it is better to change the “additionnal flags” in the “Miscellaneous” tab.

For the FPU settings, in a forthcoming update they will be available in the “MCU Settings” tab, with the FPU kind and ABI preselected depending on the MCU chosen when creating the project.

Bernard