Loading...
 
Skip to main content

System Workbench for STM32


Default FPU Mode

I've created a new project based on custom STM32F407 board with default settings.

The files are being compiled using these FPU settings: mfloat-abi=hard -mfpu=fpv4-sp-d16

The startup_stm32.s file contains this code:

.syntax unified
.cpu cortex-m4
.fpu softvfp
.thumb

I'm not sure, but isn't there a conflict here (i.e. hard vs soft)? Shouldn't changing the FPU settings in the project change also the .fpu line in the startup file?

France

In fact the .fpu softvfp line is useless in this file, as there is no floating point operations, but effectively this line should say .fpu hard to be consistent.

Bernard