Go Down

Topic: Burn Bootloader -> w/ Arduino as ISP option (Read 25804 times) previous topic - next topic

edwardchuajh

Hi,

Wanted to ask under the tools->Burn Bootloader option, there's one which says: w/ Arduino as ISP

What does it do exactly? Does it turn my arduino into an avr programmer straight?

If so, what hardware changes do I need to make? and how do I use it to load the Arduino bootloader into a new Atmega chip?

Thanks!

cr0sh

Probably has something to do with this:

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1165363464

http://www.arduino.cc/playground/Code/Programmer2

http://www.arduino.cc/playground/Code/MegaISP

:)
I will not respond to Arduino help PM's from random forum users; if you have such a question, start a new topic thread.


edwardchuajh

Thanks! That was what I was looking for :)

AlphaZeta

Did anyone got this method to work with ATMega328? I have tried a couple of times, but have not had any luck so far.

raron

#5
Apr 06, 2010, 03:43 pm Last Edit: Apr 06, 2010, 03:45 pm by raron Reason: 1
Yes.
I made it work by sort of mixing the nice Avrdude tuturial:
http://www.ladyada.net/learn/avr/avrdude.html
with the atmega 328 fuse settings from this tutorial:
http://blog.modifiedelectronics.com/2009/08/arduino-atmega328-fuse-settings.html

Basically I set my fuses to:
EXTENDED: 0xFD
HIGH: 0xDA
LOW: 0xFF
And the lockbit fuse to 0xCF.

and then using the really excellent ADAboot bootloader from http://www.wulfden.org/TheShoppe/freeduino/ADABOOT.shtml. Though you can use any compatible bootloader you want to. But this is really nice, boots almost instantly!

Well some verify / out of sync on verify errors did pop up sometimes, but it seems to work. Probably due to a different read-back of some fuse bits as I understand it. I used the megaISP linked above.

Others have seemingly succeeded with different fuse settings: http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1268700386/0

jn

Hello, im using an Arduino that came with an Atmega328, will using this tutorial of using the Arduino as an ISP "ArduinoISP" allow me to burn the bootloader to an Atmega8 just as easy or do i need to change something?

Im choosing Atmega8 because of its price, to make standalone school projects, which needs less than 8kb in program memory.

Thanks in advance!

AlphaZeta

Thanks raron, I will have to give this method a try then.

lundnul

#8
May 03, 2010, 09:15 pm Last Edit: May 03, 2010, 09:30 pm by lars.engel Reason: 1
@AlphaZeta: Do you have any updates on this? I am trying the same but I get a

avrdude: Expected signature for ATMEGA328P is 1E 95 0F
        Double check chip, or use -F to override this check.


message. Is the LED on pin 9 supposed to pulse when the arduino is doing nothing? I am running the circuit as in the Tutorial "Arduino as ISP"

Thx.

AlphaZeta

Hi lundnul,

No, I haven't tried again. Now I am getting so used to using the bitbanging method and it has been working extremely well for me.

lundnul

But you need a programmer for this, right? Are you doing this under MacOS?

So far I have succeeded in running avrdude directly with the -F option to ignore the signature. I try to burn the ATmegaBOOT_168_atmega328_pro_8MHz.hex which comes with Arduino. Unfortunately I get a verification error now.

Anyone with an idea?

Thx.

AlphaZeta

No, you don't need a programmer for this. In fact, this method pretty much turns your Arduino into a programmer. You can find out more information here (http://www.arduino.cc/playground/Hacking/AvrdudeFTDIBitbang,
http://doswa.com/blog/2009/12/20/avrdude-58-with-ftdi-bitbang-patch-on-linux/,
http://www.kerrywong.com/2010/04/02/on-atmega328-bootloading-with-ftdi-bitbang-method/)

lundnul

#12
May 04, 2010, 09:28 pm Last Edit: May 04, 2010, 10:18 pm by lars.engel Reason: 1
Thanks!

Though I am still a bit confused:

I need to run a compiled version of avrdude and I need to install the D2xx driver instead of the VCP driver?

I am trying this http://doswa.com/blog/2009/12/20/avrdude-58-with-ftdi-bitbang-patch-on-linux/ on MacOS but I am stuck with the Makefile, did you go the same way?

AlphaZeta

Well, if you are using the bitbang method, you will have to modify the avrdude source file to accommodate the FT232 chip and thus you do need to compile your own avrdude from the source.

I know that under Linux you do not need to install additional drivers, but I am not quite sure if you need to under Windows. Maybe someone else can answer this one?

lundnul


Go Up