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
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.
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.
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): https://launchpad.net/gcc-arm-embedded Seems to work for me.