The atmega328 in on a breadboard with 16 mhz crystal and 2x 22pF capacitor on pin 9 and 10.
Quote from: Lentrave on Mar 15, 2012, 06:01 amThe atmega328 in on a breadboard with 16 mhz crystal and 2x 22pF capacitor on pin 9 and 10.I don't know for sure. You should probably connect pin 20 (AVCC) to +5V. You should have a 0.1 uF capacitor between VCC and GND, and AVCC and Gnd. You should probably have a 10K resistor between RESET (pin 1) and +5V.
Post a photo please.
I can't see anything wrong. You are clearly communicating with the Mega2560 because of all the stuff that is coming back from avrdude.However a device signature of 0x000000 seems to suggest that the Atmega328 is not responding. You could try measuring voltages (eg. on 5V) to confirm it is powered up. Other than that, it's hard to know what to suggest next.Oh, wait. Have you connected the Gnd and +5V from one side of the breadboard to the other? I can't see it in the photo, but maybe you did outside it.
Well I don't know for sure what to try next. I got it working so in principle it should work. In your shoes I would be starting to swap things around. Do you have a Uno or similar you can hook the wires up to, to see if it works there? Or another programmer like a USBtinyISP? Or another chip?
sudo avrdude -c avrisp -p atmega328p -P /dev/ttyACM0 -U flash:w:/tmp/build8745867845927178213.tmp/Blink.cpp.hex -b 19200 -v -v -v -v