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

von Salman Sheikh (Guest)

Rate this post
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

von Helge K. (helge_k25)

Rate this post
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.

von W.S. (Guest)

Rate this post
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 


von Divergence (Guest)

Rate this post
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.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.