Still missing crt0.o

Guest #3625298
Rate this post
useful
not useful
Hello,

I have had massive problems getting a compile chain working with a 
debugger using open source GCC tools. So, I am trying again with 
Yagarto.
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 
./src/main.o
c:/yagarto-20121222/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-n 
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
Guest #3629588
Rate this post
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 
purposes.

W.S.

Reply

Please log in before posting.

or

Log in with Google account

Registration is free and takes only a minute.

Register now