Skip to main content
Visitor II
September 27, 2021
Solved

startup-stm32xxx is not nowhere to be found

  • September 27, 2021
  • 4 replies
  • 2275 views

Hey,

I'm currently trying to get myself away from HAL, insteed using a more direct implementation. So the first thing I am trying is a simple blinky programm, with as little as possible number of files. I downloaded the StdPeripherel Files for my board (STM32F103RB-Nucleo), but I cannot locate the startup_stm32F1xx.s file.

So my question is, do you actually need it?

And if yes, where do I get it from?

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

    It's a generic name, there tend to be MCU specific files as each class within the family often have different memory sizes, peripheral mixes, and interrupt vector tables.

    STM32Cube_FW_F1_V1.8.4\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\arm\startup_stm32f100xb.s

    4 replies

    Graduate II
    September 27, 2021

    It's a generic name, there tend to be MCU specific files as each class within the family often have different memory sizes, peripheral mixes, and interrupt vector tables.

    STM32Cube_FW_F1_V1.8.4\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\arm\startup_stm32f100xb.s

    SenaxAuthor
    Visitor II
    September 27, 2021

    Oooooh, thank you, i found it!

    Graduate II
    September 27, 2021

    For 103RB probably this one

    STM32Cube_FW_F1_V1.8.4\Drivers\CMSIS\Device\ST\STM32F1xx\Source\Templates\arm\startup_stm32f103xb.s

    Also in example project trees

    STM32Cube_FW_F1_V1.8.4\Projects\STM32F103RB-Nucleo\Examples\ADC\ADC_AnalogWatchdog\MDK-ARM\startup_stm32f103xb.s

    SenaxAuthor
    Visitor II
    September 27, 2021

    wow, you anwered my question, before I even asked it.

    Thank You!

    SenaxAuthor
    Visitor II
    September 27, 2021

    So now that i found it, which of these 8 files do I need to add to my source in the Makefile?

    0693W00000FAYsvQAH.png

    Technical Moderator
    September 28, 2021

    Hi @Senax​ ,

    In the Glossary of RM0008, you find the following explanation:

    0693W00000FAhXIQA1.pngA complementary explanation for value line (vl) in RM0041:

    0693W00000FAhYpQAL.pngSTM32F103RB is a medium density device (128Kb flash), so you will have to select startup_stm32f10x_md.s.

    -Amel

    SenaxAuthor
    Visitor II
    September 29, 2021

    Thank you! ​