|
Flying Electron Application Note 0500
Creating a New C Project in Atmel AVR Studio 4
Background
In this application note, we will be demonstrating how to create and compile a new C project using the Atmel
AVR Studio 4 application. In this demonstration we will be targeting the project for the Atmel AtMega168
microcontroller as used in the Flying Electron FE_M168 development board. This application note can also be
used as a reference for creating projects targetting other Atmel AVR microcontrollers by choosing a different
microcontroller model during the device targetting step.
Software Needed
- Atmel AVR Studio 4
- WinAVR
Creating a New C Project in Atmel AVR Studio 4 Interactive Tutorial
The interactive tutorial below will graphically demonstrate how to create and compile a C project using
the Atmel AVR Studio 4 application. Click on the image of the interactive tutorial to start the tutorial.
Creating a New C Project in Atmel AVR Studio 4 Quick Reference
Below is a quick reference for the steps taken in the interactive tutorial for Creating a New C Project in Atmel AVR Studio 4.
- Launch AVR Studio 4.
The Welcome to AVR Studio 4 dialog will appear.
Click the New Project button on the Welcome to AVR Studio 4 dialog.
- The Create new project pane will appear.
Select AVR GCC for the project type.
Enter a Project name.
Check the Create folder checkbox.
Set the location where the project files should be stored.
Click the Next button.
- The target device selection pane will appear.
Select AVR Simulator for the debug platform.
Select ATMega168 for the Device.
Click the Finish button.
- Enter the source code into the .c source file.
- Use the Build menu in AVR Studio 4 to build the project.
Project creation and compilation is now correct.
|