Go Down

Topic: Did I break my atmega328? (Read 670 times) previous topic - next topic


I am trying get my breadboarded atmega328 working with the Arduino IDE. It was working with AVRDude via command line which worked fine. Then I tried through the IDE, it uploaded fine, but didn't blink. Then I tried to burn a bootloader :smiley-eek:. I had it set to arduino mini w/atmega328 and now I get avrdude: initialization failed, rc=-1. AVRDude via command line won't work either.
Is there any hope to get my chip running again?


Dec 22, 2012, 08:16 pm Last Edit: Dec 22, 2012, 08:18 pm by Robofarmer Reason: 1
What a noob move. Reading up a little more I am afraid it disabled SPI. I'm bricked.


Did you use a programmer to upload the sketch ?
If you can do that, you can also load the bootloader.

But it has to match. Is your breadboard ATmega328P running at 16MHz ?

The most common problem is setting the fuses for an external crystal, while there is no external crystal. If you did that, connect a clock signal or a crystal. After that use avrdude (with -vvv) to read the fuses. Try to find out what they should be, and set the fuses right for the Arduino. After that try uploading a matching bootloader.


Woo hoo! It was just the crystal not wired correctly. Thanks for your help.

Go Up

Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

via Egeo 16
Torino, 10131