Go Down

Topic: HOW TO BURN BOOTLOADER (Read 933 times) previous topic - next topic

chetan0412

Hi,

Can i have step by Step instruction to burn bootloader in atmega8.

i Have Arduino328, and i want to load bootloader in atmega8, after loading bootlader in atmega8 i want to run program on standalone board, m using

atmega8 to reduce my project cost, i have completed all steps as per below lin

http://www.instructables.com/id/Bootload-an-ATmega328/

and i got successful loading message, but i don't know why my atmega8 is not working, i removed my atmega328 chip from my board and i

connect my atmega8 chip on board, m able to load blink program on my arduino but after loading program my LED blinking not work.

let me know solution

chetan

johnwasser

Loading a bootloader on the ATmega8 is tha same as loading a bootloader on the Atmega328P except you select the board "Arduino NG or older w/ ATmega8" instead of "Arduino Uno" or "Arduino Duemilanove w/ ATmega328".
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

chetan0412

#2
May 02, 2013, 04:02 am Last Edit: May 02, 2013, 04:05 am by chetan0412 Reason: 1
Hi,

Thanks johnwasser for reply,

Right i have selected "Arduino NG or older w/ ATmega8" after loading bootloader in atmega8,

m got Bootloader burning successful message = ok
        Program loading/uploading successful message = ok
        Led showing correct status while loading program.(Blinking Tx, Rx Leds are correctly )

but why my led program is not working after loading program??????? i am testing blink led program on my board,  is there any special setting or any setup while we are using Atmega8 on arduino328 board...

(i am testing my mega8 chip on mega328 board)

johnwasser

I can't think of any reason for the LED not to work.  The digital pin 13 is Port B bit 5, just like on the ATmega328 and that is connected to chip pin 19 just like on the ATmega328.  If you put a meter on pin 19 of the chip does it go on and off?
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

chetan0412

Hi johnwasser,

Please check video n tell me anything following wrongly?????

everything showing ok than what is problem???

have u seen bootloader instruction which i have mentioned on my previous reply????

or anything is missing in instruction which i followed(http://www.instructables.com/id/Bootload-an-ATmega328/)

See this video for more clarity...
http://youtu.be/7Rx3g9XTo9A

johnwasser


See this video for more clarity...
http://youtu.be/7Rx3g9XTo9A


Your board is labeled "Areduino" or maybe "Araduino".  I don't know if that board has design differences that might cause a problem.

You have a bunch of wires connected to your "Areduino".  Try disconnecting everything but the USB cable to see if that helps.

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

westfw

Quote
See this video for more clarity...
http://youtu.be/7Rx3g9XTo9A

It certainly looks like burning the bootloader and uploading the sketch worked fine, making this a "why isn't BLINK working?" question.  As John points out, your board is far from being a "standard" Arduino; are you sure that the on-board LED is connected to the same pin? (it does blink after the reset, which is normal (though it blinks a bit weird (probably a video artifact))

chetan0412

thanks for reply,

As u know Arduino is OPEN SOURCE, i have purchase board from local market n make , and the have printed their name on this board,

many examples are working on my board(with original mega328 which come with my board) without any problem,

i tried firmata, blink led , push button, etc....

Quote
are you sure that the on-board LED is connected to the same pin?


ya its perfectly working with my original mega328 n default blink led program without any change....

k today ll upload video with both mega8 and 32...

i hop this will help to understand....


westfw

#8
May 06, 2013, 10:20 am Last Edit: May 06, 2013, 10:23 am by westfw Reason: 1
Could you post the full compile/upload log (with "verbose" on) created when you upload the sketch?

Since you were apparently successful uploading the bootloader, you could try uploading optiboot instead.
I would not really expect this to change anything, but I suspect that the ATmega8 bootloader hasn't been looked at in a long time...  (For example, the pin13 LED blinks immediate AFTER your upload.  Optiboot wouldn't do that; it would just start the sketch.  It COULD be the way that the ATmega8 bootloader starts sketches (restart the bootloader and let it time out), or it could be the sign of something more mysterious happening.)


chetan0412

Thanks westfw,

I am beginner for arduino...

please tell me two thing,

from where i can get compile/upload log (with "verbose" on)?

and what is optiboot???? can i have some steps for this ??????

chetan0412

Hi,

Can any one tell me baby step to burn bootloader in atmega8 ?????

with all smallest steps..????

Go Up