cancel
Showing results for 
Search instead for 
Did you mean: 

A CUBE issue: float mode from hard to ''soft'' with no explanation

remae
Associate
Posted on July 07, 2016 at 15:04

Hi,

i have a problem with CUBE and System Workbench.

Each time i click the ''Generate code'' the FPU mode in Drivers and/or Middlewares is randomly switched from hard to soft (--abi-float=soft)

The code won't compile then.

It's very annoying because this behavior is very random: sometimes only the Drivers branch is touched, sometimes both Drivers and Middlewares are changed.

Is my problem unique or there's a solution for a ''permanent'' float setting in Eclipse?

I need ''hard''.

-

Using the System Workshop Luna Release 2 (4.4.2) and Cube MX 4.14.0 on Windows.
2 REPLIES 2
Radosław
Senior II
Posted on July 07, 2016 at 19:34

If STemwin is in use, then softfpu is required.

soft fpu still use FPU but calling is different.

remae
Associate
Posted on July 08, 2016 at 11:09

Okay, but it silently changes also the Driver's MPU to ''-mthumb''. The rest of project remains unchanged. You can easily imagine what happens then, on execution.

THE PROBLEM IS:

After each of code generations the Drivers MPU Setting is not more inherited from  the project root, and in 50% of the cases Drivers in plus are completely excluded from the build.

I can re-include Drivers back but I cannot change the Drivers MPU settings to anything - nor hard, nor softp.

The only way to ''fix'' it is to delete the entire Drivers folder physically and to copy it back.