Using eclipse for IDE
Eclipse download links
- windows 32 bit -> https://drive.google.com/open?id=1SRsfHoZr97Nd5i5QuewmkohU4jR6Rj_4
- windows 64 bit -> https://drive.google.com/open?id=1g4E2BKhHbQkYKMyz2TCMkuv6IALP36l0
Other installations needed
- WINAVR -> https://drive.google.com/open?id=1VbYFkFhTqCSx6KWOqq02LHMCqbC44Bc4
- JAVA JDK 8 (32bit)-> https://drive.google.com/open?id=1KWhW9oxNnCSSMQUiG4H0G2Tgy48tkeE-
- JAVA JAK 8 (64bit) -> https://drive.google.com/open?id=1QzzDwi5WXLBWqbL7N2XnJ6TOKnn1Zgg1
Creating a new project
After extracting the eclipse file, run it and create a new project as follows
-
File>new>C project
Choose AVR Cross Target Application, give it some project name
Choose hardware ic, as for AVR motherboard we will go for Atmega328P
Choose MCU frequency as 16 000 000. That is 16MHz.
Compile your sample code
Now transferring the hex file generated after compiling the code to atmega ic via bootlaoder
Go to project properties>AVR>AVRDUDE> Programming configuration > new
In AVR Dude settings four, files are important
1) Configuration name -> over here its using bootloader
2)Programming hardware -> Arduino
3) Port -> This value can change use device manager for the exact value
4) Baudrate -> 57600
Done!
Common problems:-
1)In case AVR toolbar is missing in eclipse downloaded from above 
install AVR plugin -> https://drive.google.com/open?id=1FITFi6N0uhS-6VIUP-Ju7XEai8CKOnj0
Go to help -> install new software
And install all the files