We assume that you already installed WinAvr latest version.
Note :- Install notepad++.
We recommended that you use a external make file in AVR STUDIO 4 for commanding all the process.
Follow all the steps for creating a make file.
1. After installing WinAvr. Search a file in your search option type "Mfile". see in below figure. If you can not search this file search it in WinAvr folder in 'C' drive where it is installed.
2. Open the file and click on the makefile option.
9. If you want to use external header file or c source files in your code then you must select those files in your makefile from below option. Those file must be in the same folder where your project is saved.
10. Select your programmer. If do not want to burn your code no need to select this option.
Note :- Install notepad++.
We recommended that you use a external make file in AVR STUDIO 4 for commanding all the process.
Follow all the steps for creating a make file.
1. After installing WinAvr. Search a file in your search option type "Mfile". see in below figure. If you can not search this file search it in WinAvr folder in 'C' drive where it is installed.
2. Open the file and click on the makefile option.
3. Click on the make file name option and type project file name. The name should be same as the project file name.
4. select Mcu type.
5. Select output format as ihex.
6. Select optimization level to 's' always.
7. Select debug format.
8. Select C standard level to gnu99 always.
9. If you want to use external header file or c source files in your code then you must select those files in your makefile from below option. Those file must be in the same folder where your project is saved.
10. Select your programmer. If do not want to burn your code no need to select this option.
11. Select your programer com port here for burning the program.
12. save the file in the same folder where your project is saved.
13. Now you have to insert this make file in avrstudio 4. Open studio 4.
create your project see.....(AVR STUDIO 4 TUTORIAL...).
Goto project option in main menu bar Project>configuration.
Check the box "use external makefile".
browse your make file from your project folder and click ok.
now you can compile and build your program.