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


FPU settings for a project

So I am getting the following error:

arm-none-eabi-gcc: error: -mfloat-abi=soft and -mfloat-abi=hard may not be used together__
__

The thing is, I do have this in C/C++ Compiler->Miscellaneous settings: “-fmessage-length=0 -mfpu=fpv4-sp-d16 -mfloat-abi=hard”

Basically I do set it to “hard”, and also I checked compiler options below command field and it starts with this: “-mcpu=cortex-m7 -mthumb -mfloat-abi=hard -mfpu=fpv5-d16 ...... ”

So why is IDE confused and gives me such error?
Any other place to look for that soft setting and change it to hard?

quick update:

Inside Debug/XXX/YYY folder, I do find subdmir.mk file which actually does have this:
” arm-none-eabi-gcc -mcpu=cortex-m7 -mthumb -mfloat-abi=soft ....... ”

but question is, how did that soft setting propagate there since I turned it as “hard” setting all over the options in settings? How can I change it? (I do not think manually editing each subdir.mk file is right option)

France

Hi,

No you should not edit any subdir.mk file: it will be overwritten next time you build the project...

The reason you have this is that, for some reason, someone decided to set specific build settings for this folder. In the project explorer this folder should appear with a little pin on its top right corner.

The right way to go is to right click on the folder that causes the problem then select Properties and look at build settings to see if there is something that is really needed;

  • If this is true you should edit the Compiler settings to select the hard FPU ABI.
  • If there is no specific setting needed, you can close the properties dialog then right-click again on the folder and select Resource configurations... >> Reset to default. Then you will be proposed with all subdirectories that set folder specific options: just select the ones that should not and click reset; then your problem should be resolved.


Of course look at all your folders to see if there are other “pinned” folders...

Hope this helps,

Bernard (Ac6)


that folder indeed has some key looking sign on top right, i did reset to default for resource configuration and now it all works and compiles! cool, thanks