System Workbench is losing some settings
Hi,
I have created a STM32CubeMX (V4.23) project for use with a Nulceo-L476 development board. The project is simple in that it only sets up SYS for serial wire debug, the LED and Push Button GPIO and USART2. All this works as expected.
This CubeMX project is then imported into System Workbench (V2.2) which builds and debugs as expected.
I then add to the project a directory \App containing \Inc and \Src with source code that I would like to keep separate from the \Src and \Inc directories created by CubeMX. I am able to change the properties of the \App directory with include paths as required etc. This also builds as expected.
Now I exit System Workbench then restart it, to find that the build fails with the following messages.
c:/ac6/systemworkbench/plugins/fr.ac6.mcu.externaltools.arm-none.win32_1.15.0.201708311556/tools/compiler/bin/../lib/gcc/arm-none-eabi/6.3.1/../../../../arm-none-eabi/bin/ld.exe: error: FW_0004.elf uses VFP register arguments, App/Src/AppMain.o does not
There is one message for each of the source files in my \App directory.
On checking the properties of my \App directory I see that they have changed in terms of the floating point configuration which appears to be the cause of the linker errors. I have only shown the area that has changed.
The initial settings were:
-mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 ...
But have changed to:
-mcpu=cortex-m4 -mthumb -mfloat-abi=soft ...
If I check my top level project node, FW_0004, I see that the MPU Settings select a hard FPU as expected.
The \App node correctly inherits the FPU settings initially, but after System Workbench is shutdown where is it getting the incorrect settings from and why?
Is there a way to re-inherit the correct settings for \App similarly to what happens when a new directory is created?
So far the only way that I can get the correct settings is to delete then recreate the \App directory and its contents, then apply the required settings to this node. This only lasts until the next time System Workbench is exited.
Any help would be appreciated.
Regards
FarmerJo