[SOLVED] Mega2560 R3 - can't upload...

Hi,
I’ve recently acquired Mega2560 R3 and… I can’t upload anything with arduino 1.0.4.
LED blinks as it should. I did loopback test - worked OK. But still - can’t upload anything. Output attached and a few lines below…
I reinstalled drivers, I burned firmware to ATmega16U2 (using Dragon), I burned bootloader (Dragon again) - still doesnt work.
I can burn sketches using Dragon but it’s a pain… Why is Arduino “upload” doesn’t work…? Any ideas…?

C:\arduino-1.0.4\hardware/tools/avr/bin/avrdude -CC:\arduino-1.0.4\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega2560 -cwiring -P\\.\COM4 -b115200 -D -Uflash:w:C:\Users\adam\AppData\Local\Temp\build4750448671845439204.tmp\Blink.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:\arduino-1.0.4\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : \\.\COM4
         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: . [1b] 
avrdude: Recv: . [01] 
avrdude: Recv: . [00] 
avrdude: Recv: . [0b] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [01] 
avrdude: Recv: . [00] 
avrdude: Recv: . [08] 
avrdude: Recv: A [41] 
avrdude: Recv: V [56] 
avrdude: Recv: R [52] 
avrdude: Recv: I [49] 
avrdude: Recv: S [53] 
avrdude: Recv: P [50] 
avrdude: Recv: _ [5f] 
avrdude: Recv: 2 [32] 
avrdude: Recv: t [74] 
avrdude: stk500v2_getsync(): found AVRISP programmer
         AVR Part                      : ATMEGA2560
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PA0
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    10     8    0 no       4096    8      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           flash         65    10   256    0 yes    262144  256   1024  4500  4500 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : Wiring
         Description     : Wiring
         Programmer Model: AVRISP
avrdude: Send: . [1b] . [02] . [00] . [02] . [0e] . [03] . [90] . [86] 
avrdude: Recv: . [1b] 
avrdude: Recv: . [02] 
avrdude: Recv: . [00] 
avrdude: Recv: . [03] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [03] 
avrdude: Recv: . [00] 
avrdude: Recv: . [0f] 
avrdude: Recv: . [18] 
--- truncated - full version atached ---
         Hardware Version: 15
         Firmware Version Master : 2.10
avrdude: Send: . [1b] . [05] . [00] . [02] . [0e] . [03] . [94] . [85] 
avrdude: Recv: . [1b] 
avrdude: Recv: . [05] 
avrdude: Recv: . [00] 
avrdude: Recv: . [03] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [03] 
avrdude: Recv: . [00] 
avrdude: Recv: . [00] 
avrdude: Recv: . [10] 
         Vtarget         : 0.0 V
         SCK period      : 146.5 us

avrdude: Send: . [1b] . [06] . [00] . [0c] . [0e] . [10] . [c8] d [64] . [19]   [20] . [00] S [53] . [03] . [ac] S [53] . [00] . [00] 5 [35] 
avrdude: Recv: . [1b] 
avrdude: Recv: . [06] 
avrdude: Recv: . [00] 
avrdude: Recv: . [02] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [10] 
avrdude: Recv: . [00] 
avrdude: Recv: . [01] 
avrdude: AVR device initialized and ready to accept instructions

--- truncated - full version atached ---
avrdude: reading input file "C:\Users\adam\AppData\Local\Temp\build4750448671845439204.tmp\Blink.cpp.hex"
avrdude: writing flash (1632 bytes):

Writing | avrdude: Send: . [1b] . [0e] . [00] . [05] . [0e] . [06] . [80] . [00] . [00] . [00] . [98] 
avrdude: Recv: . [1b] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [00] 
avrdude: Recv: . [02] 
avrdude: Recv: . [0e] 
avrdude: Recv: . [06] 
avrdude: Recv: . [00] 
avrdude: Recv: . [1f] 
avrdude: Send: . [1b] . [0f] . [01] . [0a] . [0e] . [13] . [01] . [00] . [c1] . [0a] @ [40] L [4c]   [20] . [00] . [00] . [01] . [c1] . [00] . [00] . [1f] . [c1] . [00] . [00] . [1d] . [c1] . [00] . [00] . [1b] . [c1] . [00] . [00] . [19] . [c1] . [00] . [00] . [17] . [c1] . [00] . [00] . [15] . [c1] . [00] . [00] . [13] . [c1] . [00] . [00] . [11] . [c1] . [00] . [00] . [0f] . [c1] . [00] . [00] . [0d] . [c1] . [00] . [00] . [0b] . [c1] . [00] . [00] . [09] . [c1] . [00] . [00] . [07] . [c1] . [00] . [00] . [05] . [c1] . [00] . [00] . [03] . [c1] . [00] . [00] . [01] . [c1] . [00] . [00] . [ff] . [c0] . [00] . [00] . [fd] . [c0] . [00] . [00] . [fb] . [c0] . [00] . [00] . [f9] . [c0] . [00] . [00] . [f7] . [c0] . [00] . [00] . [f5] . [c0] . [00] . [00] . [0a] . [c1] . [00] . [00] . [f1] . [c0] . [00] . [00] . [ef] . [c0] . [00] . [00] . [ed] . [c0] . [00] . [00] . [eb] . [c0] . [00] . [00] . [e9] . [c0] . [00] . [00] . [e7] . [c0] . [00] . [00] . [e5] . [c0] . [00] . [00] . [e3] . [c0] . [00] . [00] . [e1] . [c0] . [00] . [00] . [df] . [c0] . [00] . [00] . [dd] . [c0] . [00] . [00] . [db] . [c0] . [00] . [00] . [d9] . [c0] . [00] . [00] . [d7] . [c0] . [00] . [00] . [d5] . [c0] . [00] . [00] . [d3] . [c0] . [00] . [00] . [d1] . [c0] . [00] . [00] . [cf] . [c0] . [00] . [00] . [cd] . [c0] . [00] . [00] . [cb] . [c0] . [00] . [00] . [c9] . [c0] . [00] . [00] . [c7] . [c0] . [00] . [00] . [c5] . [c0] . [00] . [00] . [c3] . [c0] . [00] . [00] . [c1] . [c0] . [00] . [00] . [bf] . [c0] . [00] . [00] . [bd] . [c0] . [00] . [00] . [bb] . [c0] . [00] . [00] . [b9] . [c0] . [00] . [00] . [b7] . [c0] . [00] . [00] . [b5] . [c0] . [00] . [00] . [b3] . [c0] . [00] . [00] . [b1] . [c0] . [00] . [00] . [00] . [00] ! [21] . [00] $ [24] . [00] ' [27] . [00] * [2a] . [00] - [2d] . [00] 0 [30] . [00] 3 [33] . [00] . [01] . [01] . [00] . [00] . [04] . [01] . [07] . [01] . [0a] . [01] . [00] . [00] . [f2] 
avrdude: ser_send(): write error: sorry no info avail

upload_output.txt (12.1 KB)

Using Programmer : wiring

Which board do you have selected?

If you can get a sketch into the Mega with a programmer, you could make a sketch that reads and writes to the serial monitor. That way you could check if the serial path from the Arduino the the PC is okay.

Mega2560.

Try an empty sketch…

void setup( void )
{
}

void loop( void )
{
}

Tried basic sketch - no luck (same error)
Burned (with Dragon) basic serial communication sketch (serial read/write) - worked perfectly...
Burned bootloader again (with Dragon) - the problem still there -can't upload any skecth with arduino...

I'm selecting "Arduino Mega2560 or Mega ADK", selecting AVRISP mkII as programmer, selecting correct COM port - doesn't work..

Any ideas? I'm running out of options...

What if you try older IDE (1.01) ?

guix:
What if you try older IDE (1.01) ?

Will try that... Just small update - I tried it on my Mac and it worked perfectly... Looks like the board is OK.
What is wrong with my windows usb/port...? Serial comms works perfectly fine and eve though can't upload any sketch...

[UPDATE] Tried Arduino 1.0.1 - no luck - same error...

[UPDATE 2] -now solved... Changed USB port and... it worked!