|
||||||||||||||||||||||||||||||||||||
|
For a complete C/C++ development system we need the following components:
This tutorial here will cover how to setup your YAGARTO toolchain, and how to compile your first ARM program. It is required that you already have installed the GDB Server from part 1. Later I will describe how to expand YAGARTO by Eclipse. If you do not already have downloaded the GNU ARM toolchain, you can download the installer from the front page. Start the installer, at the "Choose Components" page you can accept the defaults:
Press the "Next >" button an follow the instruction from the installer. Now we want to make a short test if the compiler is available. Therefore open a command prompt and type: C:\>arm-none-eabi-gcc --version The result should look like: arm-none-eabi-gcc (GCC) 4.5.0 If there is no answer, probably the GNU ARM toolchain of YAGARTO was not installed or is not in your PATH. Here I will show you, how to compile your first program. Therefore I have created some small examples for it. Download the example you need and expand the zip file in your working directory. Note: The examples are updated because the GDB-6.8 and higher need the following option: set mem inaccessible-by-default off I will show you the next steps with the STR7Test example, and have expanded it in the following directory: D:\projekte\ARM\STR7Test This directory is only an example, choose what is the best for you. For the next steps I will use this directory. Open a command prompt and change in the D:\projekte\ARM\STR7Test directory. First you must clean the project, therefore type: D:\Projekte\ARM\STR7Test>make clean The result should look like: rm -f ./src/crt.o ./src/main.o All list and object files are deleted, now we want to compile the program, type: D:\Projekte\ARM\STR7Test>make all The output should look like: arm-none-eabi-gcc -x assembler-with-cpp -c -mcpu=arm7tdmi -g -gdwarf-2 -Wa,-amhl A file test.elf should now be created in your build directory. If you could find it, congratulations, you have compiled your first ARM program with the new toolchain. The next tutorial will describe how to expand the toolchain by Eclipse. If you need support, take a look here: An other very detailed tutorial by Jim Lynch "Using Open Source Tools for AT91SAM7S Cross Development, Revision 2" which based on YAGARTO can be found at the Atmel web site (tutorial + sample projects, 6MB). If you do not like to play the installation puzzle, want to have only ONE application, and have the budget to pay for the toolchain, take a look at Rowley Associates. Rowley has now extended the licensing scheme to include hobbyists and students with a new Personal License. Some of the software falls under the GNU General Public License (GPL). More Information about GPL, can be found here:You can download a copy of the GPL from this website, too:
|
|||||||||||||||||||||||||||||||||||