Bootloader burning error w/ ArduinoISP and 328

I am trying to burn the bootloader onto a 328 I just got.I upload ArduinoISP to my arduino, then hooked up the blank chip. I put a 120? resistor b/w RST and 5V to disable reset, then tried to burn the bootloader. I got this error:

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

I have never seen this error before...

If I try to upload a program, I get

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x1c

I have gotten ArduinoISP to work before; I have used it to program an ATtiny2313 which worked.

Thanks!

baum

Is the chip a 328 or a 328p ? There was a recent posting around here showing the hoops you have to jump through if trying to burn to a 328 non p chip.

Lefty

It's a 328P-PU. :frowning:
I just remembered that I had success with the same chip a while back loading the blink example, but now it is not working at all.
P.S. Do I need to have the 16Mhz crystal connected while burning the bloader?

baum

Yes. A crystal or resonator must be in place when burning a bootloader using the IDE.

O! I will try that later.

Thanks a lot!

baum

RE: "It's a 328P-PU"

The 328pu DOES have a different device signature than the 328p as retrolefty said, see:

RE:

"Yes. A crystal or resonator must be in place when burning a bootloader using the IDE."

erm, see "Eliminating the External Clock" at http://arduino.cc/en/Tutorial/ArduinoToBreadboard

Haven't tried it though....

I don't mean to threadjack but I have a very similar problem. I'm using a 328p-pu, just like the OP. That is the same chip as the arduino, the "other" chip that requires the hack is the 328-pu. I just tried Arduino Forum and it didn't work. The first p being pico power and the -pu being the specific package (through-hole configuration), from what I understand.

I'm using a duemilenove to do the programming, and I'm using http://arduino.cc/en/Tutorial/ArduinoToBreadboard
without the minimal circuit (without the crystal to burn it). I managed to burn it on once, the chip was able to run blink. I then tried to upload the lillypad bootloader to be able to run at 3.3V and now I'm stuck with

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

I then installed AVRdude and tried programming from the command line, this is what I'm getting:

louis-leblancs-macbook:~ louisleblanc$ avrdude -p m328p -P /dev/cu.usbserial-A6008iE2 -c avrisp -b 19200

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.12s

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

avrdude done.  Thank you.

I then tried forcing it to burn a bootloader with -F and it was saying that the fuses couldn't be read.

Are my chips dead? If so, is it likely that burning the bootloader without a crystal caused that?

Try adding the crystal + capacitors. Alternatively you can also feed a square wave (MHz range) into the XTAL1 pin. Another arduino can easily create it.

If you've used the arduino IDE to flash a bootloader and the board you had selected at that time was one with a crystal, your new chip will want one as well. Without it, it will appear dead.

The very first programming was successful, as chips from factory run with their internal clock.

Done burning bootloader.

You sir (or lady), are a hero.

I actually tried programming my uno to shoot out a >1MHz wave and even with some code I found on the forum that speak directly to the arduino in assembly. That didn't pan out so I then tried the "arduinoception" method http://arduino.cc/en/Tutorial/ArduinoISP. (I had tried it before but I think my uno was the master and I couldn't get it to disable auto-reset).