Skip to main content
sima2
Associate III
March 24, 2015
Question

Bug in startup_stm32f427_437xx.s file from STM32F4xx_DSP_StdPeriph_Lib_V1.4.0?

  • March 24, 2015
  • 3 replies
  • 614 views
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?

 

    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru
    March 24, 2015
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
    sima2
    sima2Author
    Associate III
    March 25, 2015
    Posted on March 25, 2015 at 17:00

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

    Tesla DeLorean
    Guru
    March 25, 2015
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..