New Mega 2560 - failed to leave programming mode
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 3
- Joined: Fri Dec 17, 2010 3:44 am
Re: New Mega 2560 - failed to leave programming mode
Mine does the same as the above post. There is nothing connected to the Arduino mega.
-
- Posts: 3
- Joined: Fri Dec 17, 2010 3:44 am
Re: New Mega 2560 - failed to leave programming mode
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.
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: New Mega 2560 - failed to leave programming mode
we emailed the arduino team to see if they have any suggestions. hold tight!
-
- Posts: 4
- Joined: Fri Dec 17, 2010 6:33 am
Re: New Mega 2560 - failed to leave programming mode
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/Ar ... 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
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/Ar ... 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
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: New Mega 2560 - failed to leave programming mode
hi james,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/Ar ... ATmega2560
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
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: New Mega 2560 - failed to leave programming mode
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
-
- Posts: 4
- Joined: Fri Dec 17, 2010 6:33 am
Re: New Mega 2560 - failed to leave programming mode
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
Excuse me for that. Please remove my post. I really appreciate your effort, and I don't want to brake the rules.
Regards:
James
-
- Posts: 6
- Joined: Mon Dec 06, 2010 2:14 am
Re: New Mega 2560 - failed to leave programming mode
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
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
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: New Mega 2560 - failed to leave programming mode
did you purchase the mega from adafruit, what Operating System and IDE version you are using
-
- Posts: 6
- Joined: Mon Dec 06, 2010 2:14 am
Re: New Mega 2560 - failed to leave programming mode
Yes I purchased from adafruit. I'm using windows 7, and IDE 21.
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: New Mega 2560 - failed to leave programming mode
remove the motor shield, can you upload now
-
- Posts: 6
- Joined: Mon Dec 06, 2010 2:14 am
Re: New Mega 2560 - failed to leave programming mode
No, it still will not upload.
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: New Mega 2560 - failed to leave programming mode
post a screenshot of precisely what occurs when you cannot upload
-
- Posts: 6
- Joined: Mon Dec 06, 2010 2:14 am
Re: New Mega 2560 - failed to leave programming mode
Here it is.
- Attachments
-
- screenshot.jpg (82.47 KiB) Viewed 4578 times
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: New Mega 2560 - failed to leave programming mode
What Arduino Model is selected in the menu?
are TX and RX led's blinking?
are TX and RX led's blinking?
Please be positive and constructive with your questions and comments.