not in sync: resp=0xe0 while programming external ATmega 328

Hey,

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.

Thanks in advance,
Chry

Chry007:
I already succesfully burned the bootloader on the ATmega. (no error)

Which board was selected when you burned the bootloader?

Chry007:
I already succesfully burned the bootloader on the ATmega. (no error)

Which board was selected when you burned the bootloader?
[/quote])

Atmega328 on a breadboard (8Mhz internal clock)

The usual culprits...
• Wiring
• Auto-reset not disabled
• Clocking

Very carefully double check your wiring.

How did you disable auto-reset? Capacitor?

Post the verbose output from avrdude. Please use
</mark> <mark>[code]</mark> <mark>

</mark> <mark>[/code]</mark> <mark>
tags.

I already doublechecked all the wiring using this:

For diasbling auto-reset I connected the reset pin of the arduino to 5v using a 10k resistor. Tried other resistors, too. Nothing worked.

What do you mean by Clocking?

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.

Details are available here... Arduino Playground - HomePage

What do you mean by Clocking?

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.

What do you mean?

Alright, gonna go straigt to Conrad after work and get some capacitors. I'll need to buy some small stuff anyways. Thank you!

Chry007:

[quote author=Coding Badly link=topic=150088.msg1127380#msg1127380 date=1361424964]
No 0.1 ?F bypass capacitors?

What do you mean?[/quote]

A 0.1 ?F connected between VCC (+5V) and GND as close as possible to the processor...

http://www.thebox.myzen.co.uk/Tutorial/De-coupling.html

You will need two for the ATmega328 processor.

Ok so simply connect a 0.1 ?F Capacitor at these two spots?

SimpleBreadboardAVR.png

Exactly.

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?

Thanks for your patience!

Post the verbose output from avrdude. Please use
</mark> <mark>[code]</mark> <mark>

</mark> <mark>[/code]</mark> <mark>
tags.

avrdude: stk500_getsync(): not in sync: resp=0xe0

the same as before. I noticed that the hexnumber at the end seems to differ for no obvious reason (for me). Other numbers that i get:

0xf0
0xc0
0x00

By the way: The Blink program is running on the Atmega. I figured it might have come with the bootloader.

Post the verbose output from avrdude.