Burn bootloader to atmega328p-pu

So I checked the Arduino On Breadboard site and since I can't get a 16mhz clock I went with minimal circuit. I uploaded the ArduinoISP, checked the wiring and everything, but I get this message when trying to burn:
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
What do I do?

Have you disabled autoreset on the programmer Arduino? A 10uf cap from reset to ground after uploading the Arduino as ISP sketch? Edit: reset disable should not be required for bootloading.

What is the source of the 328 chip? Did it come from an Uno? If so, the chip is set for a 16MHz crystal and so will need either a crystal or external clock to enable programming. Nick Gammon's Uno on a breadboard tutorial shows how to program using the external clock.

I don't have a clock, I'm using the Uno, nope i don't use a cap. The Programmer is an Uno

Please do this:

  • File > Preferences > Show verbose output during: > compilation (uncheck) > upload (check) > OK
  • Tools > Burn Bootloader
  • After the process fails you’ll see a button on the right side of the orange bar “Copy error messages”. Click that button.
  • Paste the error messages in a reply here USING CODE TAGS (</> button on the toolbar).

Kinorter:
nope i don’t use a cap

Sometimes you can get away without a 0.1 uF decoupling cap on the power lines but really you need one. This is a better tutorial:
http://www.gammon.com.au/breadboard

avrdude: Version 5.11, compiled on Sep 2 2011 at 19:38:36
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "C:\Users\chris\Desktop\arduino-1.0\hardware/tools/avr/etc/avrdude.conf"

Using Port : \.\COM5
Using Programmer : stk500v1
Overriding Baud Rate : 19200
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Recv:
avrdude: stk500_getsync(): not in sync: resp=0x00

avrdude done. Thank you.

You didn't answer the important question:

What is the source of the 328 chip?

Where did you get that chip from? Is it brand new from Atmel (Microchip) or is it possible that someone already burnt some firmware on it?

The chip I bought from Optimus Digital, a trusty romanian site. A nd yes, Atmel

Did the chip have a bootloader installed when you bought it? If so, which one? Have you tried to follow the tutorial in the link that Pert and I shared?

Wow, Arduino 1.0!?

  1. Yes I tried the tutorial. Same result. I don't think that it came with a bootloader. Update: I checked the site I bought it from and it says that if the bootloader is corrupt, I have to rewrite it using another board (In my case Uno). A detailed explanation of course I in their book which costs a lot of money
  2. Yes arduino 1.0 because in arduino to breadboard i need to make a hardware subfolder in the sketchbook and a put a breadboard folder to be able to burn the bootloader without the 16mhz clock.

Sometimes the Atmega chip needs an external clock signal in order to burn the bootloader and Nick Gammon's code has an output that can be used to provide the clock signal.

...R

So guess I just spent 10$ for nothing? :frowning:

Kinorter:
2. Yes arduino 1.0 because in arduino to breadboard i need to make a hardware subfolder in the sketchbook and a put a breadboard folder to be able to burn the bootloader without the 16mhz clock.

I guess you're following this tutorial:

If so, note that if you use the breadboard-1-6-x.zip download you can use the latest version of the Arduino IDE. I don't know whether the ancient Arduino IDE 1.0 is related to your problem but I did want to be sure to let you know that you're not required to use it.

Kinorter:
So guess I just spent 10$ for nothing? :frowning:

What cost $10?

...R