Help with Ardunio Mega

Hi everyone,

I cannot seem to upload to my Ardunio Mega.

Using windows 7 64-bit, I have installed and updated the drivers. Also running as an admin.

I get this:

avrdude: Version 5.4-arduino, compiled on Oct 11 2007 at 19:12:32 Copyright (c) 2000-2005 Brian Dean,

System wide configuration file is "C:\Audrino\hardware/tools/avr/etc/av rdude.conf"

Using Port : \.\COM3 Using Programmer : stk500v1 Overriding Baud Rate : 57600 avrdude: ser_open(): setting dtr avrdude: Send: 0 [30] [20] avrdude: Send: 0 [30] [20] avrdude: Send: 0 [30] [20] avrdude: Recv: avrdude: stk500_getsync(): not in sync: resp=0x00 avrdude: Send: Q [51] [20] avrdude: Recv: avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

avrdude done. Thank you.

Not sure what is going on here. Any ideas?

I think I worked it out.

It seems the auto reset does not work, any ideas what could cause this?

Hi Kytro,

I had a similar issue with my ArduinoMega. I wanted to use it with AVRstudio and regular WinAVR. In order for me to to be able to upload successfully I had to take the avrdude from the Arduino version of winavr. It seems to reset the Arduino properly before uploading. Check out the thread here:

I also added some Makefile lines to make sure the it was using the right command line options.

In the end the command line should look something like: avrdude -c stk500v1 -P com3 -v -v -pm1280 -D -V -b 57600

That will try to chat with your ArduinoMega without actually programming anything.

Regards, Xander

Kytro: are you able to upload if you manually reset the board by pressing the reset button just before the upload starts? The version of avrdude that you're using is setting DTR (see output), which should reset the board. Do you have any other Arduino boards? Do they work with the same computer? Does the Mega work with another computer?