Trying to Burn Bootloader using Arduino as ISP

Ok, so Iv got my ATMEGA168 Duemilanove hooked up to my breadboard with a ATMEGA168 chips like so....

Click on examples>ArduinoISP and then select the right parallel and serial programmer to load the sketch onto the Duemilanove.

Then

Switch to programer>Arduino as ISP and hit burn bootloader........but get

avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.

Double checked my connections, but nothing out of place?

What board have you selected in Tools-->Boards?
If you haven't edited the entry in "/hardware/arduino/boards.txt", an external crystal is expected (mostly 16MHz).

And use the IDE 0022, I had problems with 1.0 , see: http://arduino.cc/forum/index.php/topic,92925.0.html

edit: the resistor is a 10k, the capacitors both 22pF.

I selected "Arduino diecimila or duemilanove w/ATMEGA168" in Tools-->Boards?

Thank you, is 16MHz OK with ATMEGA168?
(and how would I wire a crystal with 3 pins, just scrap the caps and ground the center pin?)

boards.txt:

diecimila.build.f_cpu=16000000L

--> 16MHz is o.k. with standard fuses and bootloader.

I think you mean that sort of oscillators:

These ones have integrated capacitors, so you don't need the two 22pF.
Connect the two outer pins to pin 9 and 10 at the Atmga and the pin in the middle to ground.

Still no luck.

Using 0022

***failed;
avrdude: verification error, first mismatch at byte 0x0000
0x3f != 0x00
avrdude: verification error; content mismatch

using 1.0

avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.

How about a picture of your setup?

n00b:
Still no luck.

Using 0022

***failed;
avrdude: verification error, first mismatch at byte 0x0000
0x3f != 0x00
avrdude: verification error; content mismatch

using 1.0

avrdude: Yikes! Invalid device signature.
Double check connections and try again, or use -F to override
this check.

I don't think version 1.0 works at all for programming another chip.
As for the verification error, make sure the wires have a solid connection and are reasonably short.
I had a verification error when using 10 foot leads and a marginal connection :slight_smile:

Triple checked conections, used the last 3 IDEs too (0021,0022,0023).....still no joy?

(photo has a mistake thats been corrected: ground rail pin was in +v. but is in the right place now)

any recommendations for cheap programmers, as this is really not working for me on a breadboard!

...if you have an old LPT-cable.
Change pinning on the LPT-plug to make it compatible with STK200/300.

BUT: Be VERY careful with this programmer, you can brick your LPT-Interface with wrong wiring.

You can also look after a cheap programmer like this one:
http://shop.myavr.com/Programmer/mySmartUSB%20light.htm?sp=article.sp.php&artID=200006

Got a mac, so the LPT-plug is not a option.

Would also be nice to know why its not working, and if this means any of the Arduino ISP shields will be useless too?

I'm using a similar arrangement to burn the bootloader albeit using Windows XP (and 0.22). However, the difference is that I have a 124 ohm resistor between the Duemilanove reset and 5volts. Prior to that I just kept getting errors.

It also works with the Uno...

I think solution to your problem in signature lies in the avrdude.config file which is in the mainfolder of your arduino software change the signature of Atmega168 in this file to 0F and it will work fine.

Have you looked at Optiloader yet?

Connect Master D10 to slave reset pin, D11 to D11, D12 to D12, D13 to D13, and power, ground.
Need a crystal on the slave too.
See the video at the end of this thread
http://arduino.cc/forum/index.php/topic,68183.0.html

Jayraj:
I think solution to your problem in signature lies in the avrdude.config file which is in the mainfolder of your arduino software change the signature of Atmega168 in this file to 0F and it will work fine.

how do I find this file and edit it?

CrossRoads:
Have you looked at Optiloader yet?
GitHub - WestfW/OptiLoader: Arduino sketch for burning new bootloaders

Will check this out now, WestfW has yet to steer me wrong!