Go Down

Topic: Arduino Mega2560 can't be programmed via USB (Read 10 times) previous topic - next topic

tothmane

hello,

i have a similar issue with my brand new mega 2560 rev3. i start uploading then i have this message :

avrdude: stk500v2_getsync(): can't communicate with device: resp=0x01

avrdude done.  Thank you.


when i take a look at my arduino board, i can clearly see that my program is not working, so i'm pretty

sure that the program haven't been uploaded right.

Please can i get some help ?

ah i forgot, i changed the "wiring" setting written above , but nothing :s

thanks you a lot !

mastermushi

#6
Dec 08, 2012, 01:47 pm Last Edit: Dec 08, 2012, 01:52 pm by mastermushi Reason: 1
Hello everyone!

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.

1) Open boards.txt and find
mega2560.upload.protocol=wiring

2) Replace this string with
mega2560.upload.protocol=stk500v2

3) Save the file and restart IDE

4) In main menu Tools->Programmer please change AVR ISP MKII to AVR ISP

5) Program your sketches fellas!!!

bluenomad

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:

Binary sketch size: 3,496 bytes (of a 258,048 byte maximum)
C:\Users\Cameron\Desktop\arduino-1.0.1\hardware/tools/avr/bin/avrdude -CC:\Users\Cameron\Desktop\arduino-1.0.1\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega2560 -cwiring -P\\.\COM5 -b115200 -D -Uflash:w:C:\Users\Cameron\AppData\Local\Temp\build1215771844599652454.tmp\MegaTEST.cpp.hex:i

avrdude: Version 5.11, compiled on Sep  2 2011 at 19:38:36
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\Users\Cameron\Desktop\arduino-1.0.1\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : \\.\COM5
         Using Programmer              : wiring
         Overriding Baud Rate          : 115200
avrdude: wiring_open(): releasing DTR/RTS
avrdude: wiring_open(): asserting DTR/RTS
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: Recv:
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]

Any thoughts?
Thanks,
Cameron

ubuntu_user

#8
Mar 25, 2013, 09:37 pm Last Edit: Mar 25, 2013, 09:41 pm by ubuntu_user Reason: 1
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:

Code: [Select]
/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.

retrolefty

Quote
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.


Correct PC usb driver installed?
Correct comm port selected in IDE menu?
Does the PC acknowledge the USB connection when you plug the board in?

Lefty

Go Up