My target is a bare bones ATMEGA328P 3.3V with 8Mhz ceramic resonator. I am trying to use a Sparkfun pro mini withATMEGA328P 3.3v/8Mhz to be the programmer.
When I follow directions as per http://sysexit.wordpress.com/2013/02/07/burning-a-bootloader-to-an-arduino-nano-using-another-arduino/ I am using the Arduino IDE 1.0.5 I download successfully the ArduinoISP sketch into the pro mini 3.3v 8Mhz. Now this is wired to my target which has a ATMEGA328P installed. It uses a ceramic resonator 8Mhz.Not a crystal. It takes 3.3v power from Vcc pin on the pro mini. All is powered via USB and the FTDI breakout no other supply connected.
The pro mini is fine and so is the FTDI breakout as I am able to run other sketches in it just fine.
Is there another better way to get the boot loader in my target?
This is the error message I get:
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 have checked my connections and seems ok. I also tried swapping MSIO and MOSI.
Pro-mini Target ATMEGA CHIP pin JP-6 PIN MISO 10 16 MOSI 11 15 SCLK 9 17 RST 3 29 Vcc 4 4,6 GND 2 3,21
Any ideas how I can get a bootloader into my target?
PC is windows XP. I tried with another windows XP machine new load of IDE and FTDI driver same thing.
[SOLUTION] Turned out to be a connection problem, I was tying the resets on both boards together. When used the correct connection to reset pin on target all was good. (Also found later on a different board that I had other connections to SCK (went to buffer IC) seemed to load SCK so would not load boot loader. )