New Mega 2560 - failed to leave programming mode
Moderators: adafruit_support_bill, adafruit

Re: New Mega 2560 - failed to leave programming mode

by justwait on Sat Dec 18, 2010 5:18 am

Mine does the same as the above post. There is nothing connected to the Arduino mega.
justwait
 
Posts: 3
Joined: Fri Dec 17, 2010 2:44 am

Re: New Mega 2560 - failed to leave programming mode

by justwait on Sat Dec 18, 2010 5:21 am

I have uninstalled the Java code. I had downloaded the java code and reinstalled it. It had work before, now it does not even on the example blink program.
justwait
 
Posts: 3
Joined: Fri Dec 17, 2010 2:44 am

Re: New Mega 2560 - failed to leave programming mode

by adafruit on Sat Dec 18, 2010 8:02 pm

we emailed the arduino team to see if they have any suggestions. hold tight! :)
User avatar
adafruit
 
Posts: 11671
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: New Mega 2560 - failed to leave programming mode

by jamb133 on Sun Dec 19, 2010 5:45 am

Hi,

Thank you for the further investigation. In the meantime I collected the information which can be relevant.

IDE0018 under Ubuntu 10.04 and 10.10 (two different tries)
Board: Arduino Mega2560 from emertee
http://www.emartee.com/product/41884/Arduino-Mega-ATmega2560

I followed exactly the description found here: http://www.emartee.com/Modules/bbs/redi ... t#lastpost

Also can be useful:
http://www.cbxdragbike.com/arduino/boot ... index.html

Also the programmer is the very same (USBtinyISP v2.0) as in the link above. The result of bootloader burning as described in the link, with warning, but according to the author of the patch it's ok.

Result of sketch upload:

Binary sketch size: 3248 bytes (of a 258048 byte maximum)
/usr/share/arduino/hardware/tools/avrdude -C/usr/share/arduino/hardware/tools/avrdude.conf -v -v -v -v -patmega2560 -cstk500v1 -P/dev/ttyUSB2 -b57600 -D -Uflash:w:/tmp/build2614402755647358441.tmp/first.cpp.hex:i


avrdude: Version 5.10, compiled on Jun 29 2010 at 03:44:14
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch

System wide configuration file is "/usr/share/arduino/hardware/tools/avrdude.conf"
User configuration file is "/home/bj/.avrduderc"
User configuration file does not exist or is not a regular file, skipping

Using Port : /dev/ttyUSB2
Using Programmer : stk500v1
Overriding Baud Rate : 57600
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding

avrdude done. Thank you.


And later IDE0021

Binary sketch size: 1514 bytes (of a 258048 byte maximum)
/home/bj/arduino-0021/hardware/tools/avrdude -C/home/bj/arduino-0021/hardware/tools/avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -P/dev/ttyUSB1 -b115200 -D -Uflash:w:/tmp/build5237095338720041957.tmp/Blink.cpp.hex:i

avrdude: Version 5.4-arduino, compiled on Oct 22 2007 at 13:15:12
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

System wide configuration file is "/home/bj/arduino-0021/hardware/tools/avrdude.conf"
User configuration file is "/home/bj/.avrduderc"
User configuration file does not exist or is not a regular file, skipping

Using Port : /dev/ttyUSB1
Using Programmer : stk500v2
Overriding Baud Rate : 115200
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude: ser_recv(): programmer is not responding
avrdude: stk500_2_ReceiveMessage(): timeout


From all postings it seems that the bootloader is working, however the uploading is failing due to a bug.

The built in monitor replies to "!!!" this: ATmegaBOOT / Arduino Mega2560 - (C) Arduinjo LLC modified by MLS 100507 and it's keep sending "reset" message at 57600bps.


Best regards:
James
jamb133
 
Posts: 4
Joined: Fri Dec 17, 2010 5:33 am

Re: New Mega 2560 - failed to leave programming mode

by adafruit on Sun Dec 19, 2010 2:46 pm

jamb133 wrote:Hi, Thank you for the further investigation. In the meantime I collected the information which can be relevant.
Board: Arduino Mega2560 from emertee
http://www.emartee.com/product/41884/Arduino-Mega-ATmega2560


hi james,

you bought this from a cloner, not from adafruit and not from the arduino team or an arduino reseller -it's not fair to us or our customers when you use our forums in this way. please do not post in our forums regarding this product - contact emertee directly.

thanks,
adafruit
User avatar
adafruit
 
Posts: 11671
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: New Mega 2560 - failed to leave programming mode

by adafruit on Sun Dec 19, 2010 2:50 pm

Everyone else on this thread, if you purchased the mega from adafruit, please post what Operating System and IDE version you are using, and email support@adafruit with a link to this thread
User avatar
adafruit
 
Posts: 11671
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: New Mega 2560 - failed to leave programming mode

by jamb133 on Mon Dec 20, 2010 12:23 am

Dear Adafruit (admin)

Excuse me for that. Please remove my post. I really appreciate your effort, and I don't want to brake the rules.


Regards:
James
jamb133
 
Posts: 4
Joined: Fri Dec 17, 2010 5:33 am

Re: New Mega 2560 - failed to leave programming mode

by eric55 on Wed Jan 19, 2011 7:00 pm

Ok I'm having the same problem as I described above. Last time I posted, I tried the arduino a few days later in a friends computer and it started working. Now we are stuck with the same error on both of our computers, and this time we can not even send commands to the arduino through matlab. Whenever I try and connect to the arduino on MATLAB, I get this error.

Warning: A timeout occurred before the Terminator was reached.
??? Error using ==> arduino>arduino.arduino at 112
Unknown Script. Please make sure that either adiosrv.pde or motorsrv.pde are running on the
Arduino

- The leds do nothing when I try and upload onto the board
- I've reinstalled the drivers a few times
- I have a motor shield connected and a stepper motor, but the last time I got the error I didn't have either of these connected

thanks
eric55
 
Posts: 6
Joined: Mon Dec 06, 2010 1:14 am

Re: New Mega 2560 - failed to leave programming mode

by adafruit on Wed Jan 19, 2011 7:33 pm

did you purchase the mega from adafruit, what Operating System and IDE version you are using
User avatar
adafruit
 
Posts: 11671
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: New Mega 2560 - failed to leave programming mode

by eric55 on Wed Jan 19, 2011 9:57 pm

Yes I purchased from adafruit. I'm using windows 7, and IDE 21.
eric55
 
Posts: 6
Joined: Mon Dec 06, 2010 1:14 am

Re: New Mega 2560 - failed to leave programming mode

by adafruit on Wed Jan 19, 2011 10:12 pm

remove the motor shield, can you upload now
User avatar
adafruit
 
Posts: 11671
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: New Mega 2560 - failed to leave programming mode

by eric55 on Wed Jan 19, 2011 10:41 pm

No, it still will not upload.
eric55
 
Posts: 6
Joined: Mon Dec 06, 2010 1:14 am

Re: New Mega 2560 - failed to leave programming mode

by adafruit on Wed Jan 19, 2011 11:05 pm

post a screenshot of precisely what occurs when you cannot upload
User avatar
adafruit
 
Posts: 11671
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: New Mega 2560 - failed to leave programming mode

by eric55 on Wed Jan 19, 2011 11:55 pm

Here it is.
Attachments
screenshot.jpg
screenshot.jpg (82.47 KiB) Viewed 3886 times
eric55
 
Posts: 6
Joined: Mon Dec 06, 2010 1:14 am

Re: New Mega 2560 - failed to leave programming mode

by adafruit on Thu Jan 20, 2011 11:09 am

What Arduino Model is selected in the menu?
are TX and RX led's blinking?
User avatar
adafruit
 
Posts: 11671
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc