I received my new Arduino Mega2560 (already have had Uno R3 and Mega 1280). Problem is with programming. I just can't program it.
I have no problems programming my Uno or 1280. I also tried programming 2560 with Uno as ISP, but not working. I used the same method for Attiny85 and it works so Uno is working as a programmer.
I use OSX 10.7, Arduino 1.0.1
Errors I get:
Edit your boards.txt file and change
From:
mega2560.upload.protocol=stk500v2
To:
mega2560.upload.protocol=wiring
@ Louis Davis
Thanks very much for this solution, my Arduino 2560 (early version) on XP Home Edition just stopped uploading and hanging. Com port was still in the tools menu, and serial monitor was still working but no uploading.
I have just solved the programming issue thanks to this thread and want to share the experience.
Google does not have exact steps for the solution so I have decided to continue this conversation
In all "out of the box" arduino IDE I had the following error messages for Mega2560 board
Can't find programmer id "wiring"
But thanks to clever people above, I have found what to do.
Open boards.txt and find mega2560.upload.protocol=wiring
Replace this string with mega2560.upload.protocol=stk500v2
Save the file and restart IDE
In main menu Tools->Programmer please change AVR ISP MKII to AVR ISP
I'm having the same problem. I received my Mega2560 2 days ago. Until this afternoon, everything was working fine. Suddenly the same code that was uploading wouldn't upload any longer. I hadn't changed anything. I've read a bunch of threads, tried changing the AVRDUDE.EXE to an older version that someone posted on a different site, modified the boards.txt file to "wiring" as indicated here, tried using the ISP programmer vs the ISP mkII programmer and vice-versa- nothing works. I can't upload any programs. They all do this same thing. Very strange since it was working just fine earlier...
Here's an output from my verbose upload after I reverted everything back to the original EXCEPT I kept the "wiring" setting in the boards.txt:
The same issue with my Mega2560. Reproduced with IDE 1.0.1 and 1.0.4.
I'm disappointed. It seems Arduino is NOT so user-friendly as people say.
Too much headache for too much money... It is more convenient now to buy Raspberry Pi with ADC chip if needed.
Here is my boot log:
/home/user/bin/arduino-1.0.4/hardware/tools/avrdude -C/home/user/bin/arduino-1.0.4/hardware/tools/avrdude.conf -v -v -v -v -patmega2560 -cwiring -P/dev/ttyACM12 -b57600 -D -Uflash:w:/tmp/build7626980947593966222.tmp/TempMonDS18B20.cpp.hex:i
avrdude: Version 5.11, compiled on Sep 7 2011 at 19:34:16
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "/home/user/bin/arduino-1.0.4/hardware/tools/avrdude.conf"
User configuration file is "/home/user/.avrduderc"
User configuration file does not exist or is not a regular file, skipping
Using Port : /dev/ttyACM12
Using Programmer : wiring
Overriding Baud Rate : 57600
avrdude: wiring_open(): releasing DTR/RTS
avrdude: wiring_open(): asserting DTR/RTS
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
avrdude done. Thank you.
Can you post the sketch that you are trying to upload?
Make sure you don't have three or more exclamations points in a row "!!!", the bootloader will interpret that as an escape sequence and enter a special mode.
Driver is correct. I've tried both in Windows 7 and Ubuntu 12.04.
Port is correct: it can upload small sketch "TimeSetRTC" which is DS1307 example. But my sketch doesn't.
In log file you can see PC recognized port as /dev/ttyACM12.
It seems some kind of black magic!!! There is no any warnings in user's manual about limitations on "!!!" symbols!!!
It was my case anyway. Thanks for advice.
I have just solved the programming issue thanks to this thread and want to share the experience.
Google does not have exact steps for the solution so I have decided to continue this conversation
In all "out of the box" arduino IDE I had the following error messages for Mega2560 board
Can't find programmer id "wiring"
But thanks to clever people above, I have found what to do.
Open boards.txt and find mega2560.upload.protocol=wiring
Replace this string with mega2560.upload.protocol=stk500v2
Save the file and restart IDE
In main menu Tools->Programmer please change AVR ISP MKII to AVR ISP
Program your sketches fellas!!!
Thanks!! I just got a Mega2560 r3 and I thought it was defective. I am using v1.0.5 and it has been working great on my UNO r3. Now it works great on my new Mega! One thing I noticed is that once I changed the upload protocol from wiring to stk500v2, it works on either AVR ISP or AVR ISP MKII.
I was also facing this problem. I was searching for hundreds of sites for solution, but now I got it. In my case the problem was the missing bootloader. The "Blink" program was on the board, but personaly I coud not do anything with it. Fortunately I already have an Uno and a Nano which are working fine, so I could use the Uno (as ISP) to burn the bootloader.
Another one (bites the dust)
I tried everything mentioned above, no luck
Arduino MEGA 2560
Win 8.1
Drivers installed without error
Selection of correct COM port
Am I correct when I say that the “L” led on the board should blink when pressing the reset button?
Mine is ON and doesn’t blink at all.
Also missing bootloader?
I have only that board, how can I burn the boot loader ???