The following steps will create a new Project for AVR Cross Target development.
To create a project for the AVR Target:
The C Project wizard opens:
The AVR Plugin provides two new project types:
AVR Cross Target Application | Project suitable for applications that can be loaded onto an AVR device. |
AVR Cross Target Static Library | Project suitable for building a static library of commonly used functions, which can be linked into applications |
For this tutorial we will build an application so select AVR Cross Target Application
Enter a project name (e.g. "AVRtest") into the Project name field.
Click Next >
Now the automatic build configurations can be selected.
A Configuration is a collection of options and settings for building the project. The AVR Plugin has two default configurations:
Debug | Settings suitable for debugging the application in a simulator. |
Release | Settings suitable for generating the hex dump files which can be downloaded to the actual device. |
The options and settings for each configuration can be changed with the Advanced settings... button or, once the project has been created, via the project properties.
MCU Type | Select the target processor for your project out of the list of selected processor types. This setting is used by some tools of the toolchain to generate the correct code for the target processor. |
MCU Frequency | Select the target clock frequency for your project. This is just passed on to the compiler as a #define F_CPU <MCU Frequency> , which programms requiring exact timing can use for their internal timing calculations. |
Your new project displays in the C/C++ Projects view, and in the Navigator view. Your project is empty because you have not yet created files for your project. You can now start writing the code for your first program. |
Tip: You can view and modify the properties of your project by right-clicking on the project in the Project Explorer view and clicking Properties (or press Alt+Enter with the project selected).
Next: Creating a sample AVR C File
Change AVR Target Hardware
© 2007,2008 Thomas Holland