Arduino Mega2560 as ISP for ATMega328 and ATTiny2313?

I'm trying to get my sketches on a ATMega328 and a ATTiny2313 (not the same sketches!) on a breadboard using a Arduino Mega2560 as an ISP without success.

Is this tutorial ( http://arduino.cc/en/Tutorial/ArduinoISP ) valid for this scenario?

I'm not getting anything but avrdude stk500_getsync() errors :frowning:

To this...

...add step 1.5...

1.5 Disable auto-reset. Instructions are available here...
http://www.arduino.cc/playground/Main/DisablingAutoResetOnSerialConnection

...then try again.

Well, I did precisely that, even used the resistor ... no luck. I wondered I was doing something wrong :frowning:

Anyway, I will try that again; if you really think it has to work it's probably me missing something.

Later today, I will post a video that shows the status leds lighting pattern during the process and just before the error shows up.

I've made another step forward :slight_smile:
But still not happy :frowning:

I happen to have an Arduino Uno clone, used this one instead of the Mega2560 as an ISP, same setup as before, now I did burn a bootloader succesfully!!!! :slight_smile:
That's the successfull part.

Went on uploading a sketch, the blink example ... no way!
Problem uploading to board. ...
avrdude: stk500_getsync(): not in sync: resp=0x1c
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51
That's the sad part :frowning:


Btw.

In order to get the bootloader burnt into the atmega328 on the breadboard I had to follow some other guidelines.
The guide at http://arduino.cc/en/Tutorial/ArduinoISP tells me to "Use the Burn Bootloader > Arduino as AVRISP command."
That didn't work at all, with either board (not the original Mega2560 and so the Uno clone).

Instead I followed this guide: http://arduino.cc/en/Tutorial/ArduinoToBreadboard
I had a minimal configuration (8Mhz Internal Clock), no oscillator at hand :frowning:

Actually I did not do something ... I did not pull the Atmega328 off of the Uno board ... those DIP sockets are damn evil, I fear I will not get it back inside without breaking a few pins ... I guess that's why I couldn't upload any sketch. I wonder if that's mandatory, or there's some way to upload a sketch to the 328 on the breadboard without pulling off the 328 from the Uno board.

I did it.

I gently removed the Atmega from the Uno and tried again uploading a sketch to the Atmega on the breadboard using the Uno board as a bridge following instructions ... but no luck. Upload still fails with usual error messages. Even tried using the capacitor between UNO's Reset and GND lines ... still no luck :frowning:

Is there something more I'm missing?

Is there a way to check if the bootloader has been really correctly uploaded? Should I trust's Arduino's IDE message only? Could it be the bootloader not correctly uploaded being the cause to the sketch upload failure?

Ok, the system works but not the way I did before.

I got a 16Mhz crystal, the needed capacitors, built up the full schematics of page http://arduino.cc/en/Tutorial/ArduinoToBreadboard with a Arduino Uno clone, then burnt the standard Uno bootloader into the ATMega328P on the breadboard again (I suspected there was something wrong with the "8Mhz internal clock" stuff). Now I can plug the new ATMega328P in my arduino board and I can upload any sketch without hassle.

Still I'd like to know what went wrong with the Minimal Circuit approach. I'll investigate ...

if it can be helpful, sometime i have the same error trying thru my 2009 to burn atmega328 st.alone.
i just need to manual press reset button on the 2009 and click the upload button on the screen. it works.

dab77:
if it can be helpful, sometime i have the same error trying thru my 2009 to burn atmega328 st.alone.
i just need to manual press reset button on the 2009 and click the upload button on the screen. it works.

At the moment I stopped trying. Being working on some other stuff. I will try again though, and explorer this reset related procedure. Thx for the hint.