This brief instructable will show you how to setup Visual Studio 2008/2010 to use WinAVR and compile your AVR programs into Intel Hex format suitable for uploading to your AVR/Arduino with AVRDUDE and your favorite programmer.
P.S. Don't forget that if there is an "i" in the upper corner of the picture, you can click it and select a a larger image!
Remove these ads by
Signing UpStep 1Create your Makefile Project
Select File->New->Project
Then select Visual C++ Projects and scroll until you see Makefile Project.
Select Makefile project, select a name for your project and whether you want VS to create a directory and import into Subversion or another version control management system.
Click Ok
Configure via Wizard
You will get a wizard dialog to create the Makefile project.
Select next to go to the first real page of the wizard.
In the next dialog (see below), you will fill in several boxes.
- For "Build Command Line" type make
- For "Clean commands: type make clean
- For "Rebuild command line:" type make all
- Change the name of the executable file output to the name of your hex file with the hex extension.
- In the "Include search path" type the name of the WinAVR include directory. For me, it's C:\WinAVR\avr\include
Select the checkbox that makes the configuration the same for debug and deployment solutions, if not already checked.
Click NEXT or FINISH.
| « Previous Step | Download PDFView All Steps | Next Step » |














































Good luck!