Flashing WINAVR code to Microcontroller using ARDUINO Bootloader

                             Hey all...after a long time i came with a new idea which i have implemented,it is programming a AVR micro controller using WINAVR with ARDUINO as Programmer.its little bit confusing,dont worry.I will give you complete description.
                               
                                 Generally we program a micro controller using a programmer,so here it is normal programming.normal programming in sense??we use the programmer according to the software we used(for example,to program arduino we use a usb cable which  connected between pc and FTDI circuit as a programmer here controller will accepts the code because it contains a boot-loader ,similarly in AVR controllers we use some isp programmers like serial and usbasp's)and for flashing we use some third party tools. So few days back i came across with different type of programming i worked almost one month for this achievement.In This method of programming i am going to program a noraml avr controller with WINAVR code.you may think that there is nothing new if you are thinking sooo, once again read the title of the Post.here i will flash the WINAVR'S HEX file into avr controller(say atmega8) with arduino but not with normal programmers
before starting this you will need some below mentioned things
1.Arduino Board
2.Arduino Ide
3.AVRDUDESS
4.target AVR controller

STEP 1:
Prepare for burning arduino bootloader for target AVR controller(here iam taking Atmega8).Already i explained how to burn boot loader to avr mc in earlier posts.so you can check with that..

STEP 2:
Download AVRDUDESS tool which is user friendly and easy to use.if you are good at CMD you can go with command line utility.
this is how the tool looks



STEP3:
After bootloading the target IC with arduino,you can go with isp type programming or simple method is replace the atmega328 chip on arduino with target bootloaded mc

STEP 4:
Now connect the arduino board to the computer, open the tool and select arduino as programmer,COM port,19200 as baud rate,1.5 as bit clock or leave it.after doing all these things click DETECT which is seen in the above tool.if all the things are fine it will detect the target ic i.e atmega8 and the name of that ic is printed in below of the tool.

STEP 5:
Finally select your HEX file which is generated using WINAVR IDE.and hit 'GO' then the hex will uploaded to your target within secs. remove the programmed controller from the arduino and use for your desired application.

NOTE: This tutorial is mainly useful for advanced or intermediate users,but note for beginners coz it is little bit confusing...
                         
Any doubts regrading this ping me..thank u

Comments

Popular posts from this blog

ADC....¡¡

RF REMOTE..

Making your own arduino...!!!