Bundled with "Standard peripheral library" for my STM32F2 chip, are "startup" files startup_stm32f2xx.s. There is actually 5 different startup files, in five different folders:

MDK-ARM, TrueSTUDIO, iar, gcc_ride7, arm

I am assuming that each startup file is specific to the IDE used. I am not using an IDE. I simply use OpenOCD and GDB. Which of the 5 startup files should I use? What is the difference between the files?

  • \$\begingroup\$ Hey there, @Randomblue, I've also decided to go down the yagarto/openocd route, although I'm using Eclipse to tie everything together. I'd be really keen to talk to you about your experience, as I'm having a bad time getting everything working well. aaaidan at gee-male dot com! \$\endgroup\$
    – aaaidan
    Aug 18, 2012 at 5:03
  • \$\begingroup\$ I could help you out here. What exactly do you want to know? \$\endgroup\$
    – Randomblue
    Aug 18, 2012 at 10:15

1 Answer 1


The startup files are particular to a compiler, not particular to an IDE. The files are all fairly close, and my guess is you're using GCC, so the gcc_ride7 is probably closest to what you need.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.