Skip to main content
Senax
Associate II
September 27, 2021
Solved

startup-stm32xxx is not nowhere to be found

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.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
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

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

7 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
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

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Senax
SenaxAuthor
Associate II
September 27, 2021

Oooooh, thank you, i found it!

Tesla DeLorean
Guru
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

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Senax
SenaxAuthor
Associate II
September 27, 2021

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

Thank You!

Senax
SenaxAuthor
Associate 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

Amel NASRI
ST 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

To give better visibility on the answered topics, please click on "Best Answer" on the reply which solved your issue or answered your question.
Senax
SenaxAuthor
Associate II
September 29, 2021

Thank you! ​