Pages: [1]   Go Down
Author Topic: Uploading to Mega 2560 works in old software but not 1.0  (Read 1857 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, I've got an Arduino Mega 2560 which works absolutely fine when I use the old alpha software (0023) but very rarely works with the latest version (1.0). When I try to upload a sketch using the new software, I almost always get a timeout message. It's not the end of the world, because I can use the old software, but I thought it was a bit odd! Has anyone else experienced anything similar?
Logged

Peckham London
Offline Offline
Jr. Member
**
Karma: 0
Posts: 88
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is this on a mac or pc???
I have a mega2560 that uploads using a PC but not the MAC.
Dunno why.. :s
Logged

Smooberry Dooberry.

Austin, TX
Offline Offline
God Member
*****
Karma: 12
Posts: 524
carpe diem
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

After digging through the forums for awhile, it looks like the problem is caused by the new version of AVRDUDE in 1.0

The previous version of AVRDUDE was a custom Arduino version that handled the DTR toggle that is needed to reset the boards before upload.

With 1.0, the IDE now uses the regular version of AVRDUDE that handles the DTR toggle for the UNO type boards, but does not handle the toggle for the boards that use the STK500v2. The Mega2560 uses the STK500v2 protocol.

Some users have replaced AVRDUDE in the 1.0 IDE with the older version from 23 or 22 and are now able to upload successfully.

See this post:
http://arduino.cc/forum/index.php/topic,83079.msg634191.html#msg634191
Logged

Peckham London
Offline Offline
Jr. Member
**
Karma: 0
Posts: 88
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks! I tried your brilliant suggestion. Renames the arduino 1.0 avr folder to avronepoint nought and copied the avr folder from 0023 to hardware/tools...
Still the same.
 smiley-sadsmiley-sadsmiley-sadsmiley-sadsmiley-sadsmiley-sadsmiley-sad:smiley-sadsmiley-sadsmiley-sadsmiley-sadsmiley-sadsmiley-sadsmiley-sadsmiley-sadsmiley-sadsmiley-sadsmiley-sad:s
The company I bought the board from in China is sending me a new board though so I will wait for it and see if that one works....
In the mean time I'm keeping my ears peeled. smiley
Cheers 4 now,
Steve.
Logged

Smooberry Dooberry.

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Louis, thank you so much! That solved the problem first time. No more frenzied jabbing at the reset button for me!

Mubase, I'm using a PC, so I guess your Mac issue is something different? Hope you get it sorted!
Logged

Forum Administrator
Cambridge, MA
Offline Offline
Faraday Member
*****
Karma: 12
Posts: 3538
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

With the version of avrdude that comes with Arduino 1.0, can you try using the "wiring" programmer type instead of "stk500v2"?  That is, change the Mega 2560 entry in the boards.txt file.  Does that solve the problem too?

There's a Google Code issue for this, too, that would be a good place to keep track of the problem: http://code.google.com/p/arduino/issues/detail?id=806
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 61
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

replacing avrdude not worked for me... blink and all simple things works, but one of my big sketch doesent.
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 61
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

still not working for me...
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 61
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

any news?
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 61
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I found out that is not a problem of "size" is a problem of something inside the sketch. I tried to upload a previous version and it's uploading, then i "pumped" the size of the sketch and it's uploading fine.

At this point , what's the difference between Arduino Mega 1280 and Mega 2560? I think the sketch is calling a variable or some stuff like that,  that makes the upload stop.
Logged

Austin, TX
Offline Offline
God Member
*****
Karma: 12
Posts: 524
carpe diem
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Are you using any strings with "!!!" in them?

The bootloader has a special monitor mode that gets triggered by receiving three exclamation points in a row. The most common way is to create strings with !!! in them. Another way, is to have any kind of data array that has three or more 0x21 in a row.

There is a new version of the bootloader in the latest version of the IDE that does not have this monitor mode, but you would need to upload a new bootloader to your 2560 with an ISP.
« Last Edit: April 17, 2013, 04:31:03 pm by Louis Davis » Logged

Pages: [1]   Go Up
Jump to: