cancel
Showing results for 
Search instead for 
Did you mean: 

Bug in startup_stm32f427_437xx.s file from STM32F4xx_DSP_StdPeriph_Lib_V1.4.0?

sima2
Associate III
Posted on March 24, 2015 at 16:34

When I look in my startup_stm32f427_437xx.s file. It says:

  .syntax unified

  .cpu cortex-m3

  .fpu softvfp

  .thumb

Should it say .cpu cortex-m4?

 

3 REPLIES 3
Posted on March 24, 2015 at 17:36

Probably better it doesn't, it prevents the output of M4 instructions, especially FPU ones, prior to the FPU being enabled.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
sima2
Associate III
Posted on March 25, 2015 at 17:00

It looks like ''softvfp'' will take care of not using FPU instructions.

Posted on March 25, 2015 at 17:18

Does the file assemble, link, and work? Yes

Will you get an error if you put some very specific assembler functions in the startup.s file? Yes

Is this a problem? Probably not, because if you're putting stuff in the startup file you will be sufficiently conscious of what you're doing, when, and what error(s) this will throw, and can change the processor setting.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..