Skip to main content
Singh.Harjit
Senior
Nov 16, 2019 11:28 PM UTC
Question

Is .fpu incorrect in startup_stm32f411xe.s?

In startup_stm32f411xe.s, the FPU seems to be incorrectly declared. It is:

.fpu softvfp

Shouldn't it be:

.fpu fpv4-sp-d16

I checked other files in the same family and they also have the softvfp declaration.

This topic has been closed for replies.

10 replies

Tesla DeLorean
Guru
Nov 17, 2019 12:13 AM UTC

Is it throwing a warning at link time?

Do you actually have any FPU instructions in the start-up assembler?

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Singh.Harjit
Senior
Nov 17, 2019 5:34 PM UTC

I'm not getting any warnings.

I don't have any FPU instructions in the startup code.

I do enable and use the FPU in startup code.

I was concerned about declaring incorrect / inconsistent FPU information with the rest of the code base.

Tesla DeLorean
Guru
Nov 17, 2019 5:43 PM UTC

I don't think this is consequential.

If you use FPU instructions in the file you'll need to pick a hardware options that covers the instructions in question, so things like push/pop of the float/double registers don't throw errors, for example.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Associate II
Aug 10, 2024 8:59 AM UTC

I checked everything today and worked as expected. Thanks.

Just moved from a custom board that used STMG0 to a STM32H723. I am so ecstatic to finally be able to figure out TCM, Cache Write back, and just trying to unlock every bit of performance. Kind of bit more than i can chew with a huge project but it feels like i have injected crack. Its fun.