Go Down

Topic: Guide: How to use an Arduino as an In System Programmer (ISP) (Read 15 times) previous topic - next topic


I have to programming a ATmega8 in my own board. I followed the described procedure, but it doesn't work.
avrdude return:
"avrdude: stk500_getsync(): not in sync: resp=0x00"
I tried put 120 ohm resistor VCC to reset: the same result.



Have you connected everything correctly?
I had problems with the new Arduino ISP code in the Arduino IDE ver. 1, but the one in ver. 0.22 and 0.23 worked just fine :)


Thanks for replay.

Now I explain my steps:
- I am using Arduino Mega 2560;
- Arduino software 0.22;
- upload sketch 'ArduinoISP';
- connect a ATmega8 with breadboard (for test) to Arduino with single wire for: reset (pin 10 Arduino, pin 1 ATmega8), MOSI (pin 11 Arduino, pin 17 ATmega8), MISO (pin 12 Arduino, pin 18 ATmega 8), SCK (pin 13 Arduino, pin 19 ATmega8), also connect VCC and GND;
- put 120 ohm resistor between VCC and reset Arduino;
- in console mode I digit: 'avrdude -p m8 -P com5 -c avrisp -b 19200';
- result: avrdude: stk500_getsync(): not in sync: resp=0x00.

What do I worng?

Many thanks for your support.



I looks like that you havn't disabled auto reset properly :)
Try with a 110 ohm resistor instead. You could also cut the trace labeled "RESET-EN", see http://arduino.cc/en/Main/ArduinoBoardMega2560 at the "Automatic (Software) Reset section".



I tried your indications.

With 110 ohm resistor:
avrdude.exe: stk500_getsync(): not in sync: resp=0x00

Then I cut the trace labeled "RESET-EN", without resistor (first time):
avrdude.exe: stk500_program_enable(): protocol error, expect=0x14, resp=0x50
avrdude.exe: initialization failed, rc=-1
             Double check connections and try again, or use -F to override
             this check.

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

With cutted, without resistor (others times):
avrdude.exe: stk500_getsync(): not in sync: resp=0x00
avrdude.exe: stk500_disable(): protocol error, expect=0x14, resp=0x51


Go Up