I'm trying to program an external ATmega328p using ArduinoISP.
I already succesfully burned the bootloader on the ATmega. (no error)
When I now try to flash a program on it, I alwas get the Error:
avrdude: stk500_getsync(): not in sync: resp=0xe0
Little googling let me know, not in sync errors can occur because of the auto reset of the arduino, so i hooked up the reset pin to 5vusing all resistors I found around here. Nothing.
The pulse LED of ArduinoISP is pulsing. When programming, the "programming-LED" flashes a few times, then the error-LED flashes and then the pulse and error turns on.
Do you have any ideas what the problem could be?
I'm using Arduino uno with the Atmega 328, windows 7 and the 1.03 IDE.
The setup of the external Atmega is the ohne without external clock. I have defined the one that says "Atmega328 on a breadboard (8Mhz internal clock)" in the boards.txt
If i forgot any important information, I apologize. I am a newcomer to this but I am trying to provide evereything you need to answer this question.
Chry007:
I already doublechecked all the wiring using this:
No 0.1 ?F bypass capacitors?
For diasbling auto-reset I connected the reset pin of the arduino to 5v using a 10k resistor.
That won't work. You need a 10 ?F (or higher) capacitor connected from RESET to GND on your Uno. Some folks have found success with a 120 ? resistor connected between RESET and +5V but the capacitor seems to be more reliable.
What kind of clock is needed to run the target. In your case the goal is to use the internal oscillator. At this point there is no reason to believe the clock is the problem.
All right. I did all the above mentionend. With the 10 ?F Capacitor connected to Reset and Ground, the red Error-LED will instantly turn on and remain on, when I try to programm the Atmega. All the other things didn't change anything else (I also tried the 120 Ohm Resistor - nothing)
Are there any other possible reasons for the problem?