Loading...
 
Skip to main content

System Workbench for STM32


MCU Setting not inherited by subfolder

Thank you, this was also a problem for me. I haven an STM32F746G-Discovery board
I got the error message in System Workbench STM32

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

and your solution works fine.

I edited this file:

...\SystemWorkbench\plugins\fr.ac6.mcu.ide_1.11.0.201610101240\plugin.xml

I hope, when the bug is fixed, the setting will be inherited from root project settings!

Edit:
Now I have new problem. The compiler no has an error:

sorry, unimplemented: Thumb-1 hard-float VFP ABI

I think this may be related to the default setting for " -mcpu=cortex-m7 ", but I can't find it in any .xml file as default. Does anybody know where it is?

Edit 2:

I don't know the root-cause, but here is my work-around:

Open the .cproject in your project and for each folder there will be some configuration. Look for the part for the sub-folder and change it to match your root project folder. For me this looks like this(X,Y,Z,W are just n
umbers):

option id="fr.ac6.managedbuild.option.gnu.cross.mcu.XXXXXXX.YYYYYYYY" name="Mcu" superClass="fr.ac6.managedbuild.option.gnu.cross.mcu" value="STM32F746NGHx" valueType="string"/>
option id="fr.ac6.managedbuild.option.gnu.cross.board.ZZZZZ.WWWWWWWW name="Board" superClass="fr.ac6.managedbuild.option.gnu.cross.board" value="STM32F746G-DISCO" valueType="string"/>