Burning Bootloader problem

I am trying to burn a standard arduino bootloader on to a naked ATMega328 chip using Arduino Mega 1280 as ISP, using this guide http://arduino.cc/en/Tutorial/ArduinoToBreadboard .

I have quadruple checked my wiring, despite how simple it is, and have redone it a dozen times. I have loaded the ArduinoISP successfully onto my Arduino Mega 1280, and get the heartbeat pulse. For some reason, it just won't burn. I am using a 16 crystal with caps.

I have also tried using the Arduino Duemilanove as ISP too, with the same error message.

Yes, I selected the correct board (duemilanove), and yes I am clicking on the 'Burn bootloader' option 'w/Arduino as ISP'.

I get the same error messages repeatedly, and suspect it has something to do with the auto-reset.

avrdude: stk500_program_enable(): protocol error, expect=0x14, resp=0x50
avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.

avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

I am open to any ideas and suggestions.
Thanks!

have you taken into account that the spi port on the mega is on different pins

SCK_PIN 52
MISO_PIN 50
MOSI_PIN 51

"Double check connections and try again, or use -F to override this check."

The page you referred to uses "pins 10, 11, 12, and 13 of the Arduino board.". These pins are Analog Inputs on the Arduino Mega.

Use Digital pins instead (eg: 50, 51, 52 and 53).

How about that... an answer was posted while I was editing mine.

yea I dont own a mega so I was basing my numbers off another old thread, whatever the spi pin numbers are is what you need

as far as modding the source of the avrisp (arduino isp) I am not sure, I think it uses the avrgcc hardware spi registers to do the magic, if so it should work if you just have it plugged in correctly and the sketch loaded

whatever the spi pin numbers are is what you need

"the Duemilanove's SPI pins (used for communicating with the SD card) are located on digital pins 10, 11, 12 and 13. The Mega's SPI pins are 50, 51, 52 and 53"

Source: http://forums.adafruit.com/viewtopic.php?f=31&t=10939

Ok, good tip.

I went ahead and changed the ArduinoISP sketch to:

#define SCK 52
#define MISO 50
#define MOSI 51
#define RESET 53

This was the only place in the code that I could see the actual pin number references, and I changed them accordingly.

I got a verified upload!

Thanks guys!

Despite the verified upload, the chip won't upload a program, I get that same exact error.... any ideas?

are you still using the mega to upload program or a serial link?

I have the FTDI Basic from sparkfun.com , using the serial connection, and I have tried using the Arduino with the ATMega328 chip removed, both with the same error messages.