Forum: ARM programming with GCC/GNU tools Still missing crt0.o

Author: Salman Sheikh (Guest)
Posted on:

Rate this post
0 useful
not useful

I have had massive problems getting a compile chain working with a 
debugger using open source GCC tools. So, I am trying again with 
I installed the yagarto-tools and yagarto-20121222.

Using the command line, examples from this site for a AT91SAM7X256 
example compiles with no problem. When trying to add the eclipse, I get 
this error:

How do I remove the crt0.o dependency. According to one thread on this 
site, its no longer needed but I am not sure how to delete it from the 
build so I don't get this error.

12:06:20 **** Incremental Build of configuration Debug for project 
SAM7X256Test ****
make all
Building target: SAM7X256Test
Invoking: Cross GCC Linker
arm-none-eabi-gcc  -o "SAM7X256Test"  ./src/low_level_init.o 
one-eabi/bin/ld.exe:  cannot find crt0.o: No such file or directory
collect2.exe: error: ld returned 1 exit status
make: *** [SAM7X256Test] Error 1

Author: Helge K. (helge_k25)
Posted on:

Rate this post
0 useful
not useful
I had the same problem. All answers I get pointed to implementing the 
crt0.o by myself.

Since I am not a CRT implementer I switched to a working environment: 
www.emide.org. Probably a path you may follow.

Author: W.S. (Guest)
Posted on:

Rate this post
0 useful
not useful
It is so easy..
You are working with ARM/Cortex? yes? Of course you MUST provide a 
startup code for your particular controller. It is necessary. Write one 
by yourself or find 'away' one somewhere - hoping that it fit's to your 
application. My hint is to download the "Lernbetty" here 
(Beitrag "Die Lernbetty: Die SwissBetty von Pollin als ARM-Evalboard") and look for the 
startupcode. This is for a ARM7TDMI architecture, a Cortex needs a 
modified startup, but since the Lernbetty has a easy to understand batch 
file for the whole compilation, you can easily adapt it for your 


Author: Divergence (Guest)
Posted on:

Rate this post
0 useful
not useful
I had the same problem wit trying to compile for STM32F4xx (Cortex M4).

I ditched Yagarto and switched to using GNU Tools ARM Embedded - 
toolchain (4.8_2014q2):


Seems to work for me.


Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.