Makefile for WinAVR This tutorial is taken from the book
MY EXPERIENCE IN PROGRAMMING AVR MICROCONTROLLER
IN C USING WINAVR/AVRGCC.
you can download it free from the files
section(FILE-AVRBOOK.RAR) of yahoo group-booksbybibinhttp://groups.yahoo.com/group/booksbybibin/
comments about this book on
www.booksbybibin.blogspot.com
Here are the steps to make a makefile for winAVR
First click on this
1. select the chip
2. Select the output format(intel hex format) and select the debugging properties. Here We are choosing to AvrStudio4.0 compatible so that we can simulate the program in AVRStudio
3. Choose the programmer you are using and the port of computer for programming. Better you choose BSD programmer with parallel port interface. Circuit digram see this link
http://booksbybibin.14.forumer.com/viewtopic.php?t=3
4. Now save the makefile in the directory of program.
Better you use the
Makefile in the code I had given in my book uploaded in yahoo group-booksbybibin(file-avrbook.rar)
Now open Makefile using Notepad and do the following.
change the frequency if needed and 'bibin' is the name of the C file, change it to the name which you are using
Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.