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.
I've made another step forward
But still not happy
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!!!!
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
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).
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 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
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.