Go Down

Topic: Can't upload to Arduino Mega 2560 (Read 5 times) previous topic - next topic

eried


same prob, and i can use Teamviewer if someone wants to help...


I can check your machine via remote control so we find a fix for everyone.

Can you first test: http://arduino.cc/forum/index.php/topic,118440.0.html
If problem continues, then send me your skypeid via message and I can try to check your machine
My website: http://ried.cl

greg0ryf

hey.. any thing further to report on this thread?

I've suffered enough ... my mega2560 revision2 and IDE 1.0.1. I have four mega2560's and i have updated the 8u2 usbserial firmware (.hex RAW from github) in two of them and they still hang with the following verbose on upload:

         Programmer Type : STK500V2
         Description     : Atmel STK500 Version 2.x firmware
         Programmer Model: Unknown
avrdude: Send: . [1b] . [01] . [00] . [02] . [0e] . [03] . [90] . [85]
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]

and the IDE never rcovers until the USB is disconnected. Once, i pressed RESET on the mega2560 while it was in the hang and it then continued but i haven't been able to replicate that again - though i am certain it was after the first Send: and no Recv: and before the second.

Also, I don't know if it is signifcant, but i believe the verbose above is the first failed upload after a successful one. The subsequent uploads that fail don't appear to have that first ignored Send. This is verbose too, and it is more common:

       Using Port                    : \\.\COM17
         Using Programmer              : stk500v2
         Overriding Baud Rate          : 115200
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

... I managed the 8u2 reflash with FLIP.  Before that i embarked on the LUFA route but that proved beyond me at the need for doxygen.. and the intricacies beat me.. I write that so that you might know the limit of my ability......

i think there is some significance in the Serial library or perhaps specifically the Stream class (sic?? limit of my understanding and terminology),  as it seems all sketches seem to load perfectly if i comment out all references to LiquidCrystal and Serial.  .. course the code doesn´t do much for me then but it might be signifcant ..

If i do once or twice get the code to burn properly, my code works well and does all i want... i am now only make tweaks to character positions on the lcd or eg. to a "second screen" display if you hold the pressbutton rather than just press it. That's abstract, but it makes my point that the code is not intrinsically flawed.

Help? What next? I am reticent to go to yet another version of Arduino IDE i now have 0022 (old normal), antipasto (for toushscreen) and now 1.0.1 ... But maybe of course i must.

Greg


Go Up