Forum: System Workbench for STM32

mfloat-abi=soft appears on subdirs

Just reinstalled the workbench and updated plugin.xml to set mfloat-abi=hard as default. Ran an eclipse with -clean then cleaned the project and rebuilt. No matter what I do some subdirectories still use mfloat=abi=soft. I can’t see where they are picking the value up from.

So, the main project has:

-mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -std=c99 -Dweak=attributeweak -Dpacked=attributepacked -

But Drivers/BSP has:

-mcpu=cortex-m4 -mthumb -mfloat-abi=soft -std=c99 -Dweak=attributeweak -Dpacked=attributepacked -DUSE_HAL_DRIVER -DSTM32F469xx -

Any help would be much appreciated.

Mamaged to figure it out.

In the .cproject I removed every folderInfo block where the resourcePath was set to one of the directories which wasn’t picking up the change to ‘hard’. It compliles now.


Hi Scopa !

when you said “updated plugin.xml to set mfloat-abi=hard as default”, what do you do exactly ?
Chris


Hello Chris

I modified plugin.xml as follows:

isDefault=”true” -> change to “false” where command=”-mfloat-abi=hard”

isDefault=”false” -> change to “true” where command=”-mfloat-abi=hard”

and restart eclipse with -clean.

Regards
scopa

France

Hi scopa,

Modifying the plugin.xml file (for plugin fr.ac6.mcu.ide I presume) is quite a bad idea for at least two reasons:

  1. Next time you update this plugin, you will have to edit plugin.xml again
  2. It changes the defaukt to hard-float for all MCUs, even those without an FPU


Normally, if you select the proper MCU when creating the project, the FPU selection will be adjusted automatically to hard-float if there is an FPU in the MCU, so editing the plugin.xml file should anyway be totaly useless.

Bernard (Ac6)