Programing Motor Shield V2

Adafruit Ethernet, Motor, Proto, Wave, Datalogger, GPS Shields - etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Programing Motor Shield V2

Post by adafruit_support_bill »

Since the Rx/Tx leds are on the processor side of the 8u2 chip, I suspect that is working OK. I think you are looking at a corrupted bootloader or possibly a bad processor (it doesn't necessarily have to release smoke to get fried).

In the IDE under File->Preferences, you can enable "verbose" output for the upload. That will show you if there is any response at all from the processor.

Crock101
 
Posts: 32
Joined: Wed May 28, 2014 2:19 pm

Re: Programing Motor Shield V2

Post by Crock101 »

So i did that and tried to upload the code again and this appeared:

Code: Select all

Binary sketch size: 9,760 bytes (of a 258,048 byte maximum)
C:\Users\Colin\Desktop\Arduino\hardware/tools/avr/bin/avrdude -CC:\Users\Colin\Desktop\Arduino\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega2560 -cwiring -P\\.\COM7 -b115200 -D -Uflash:w:C:\Users\Colin\AppData\Local\Temp\build6796389473833654899.tmp\Motorcontroller_Test.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:\Users\Colin\Desktop\Arduino\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : \\.\COM7
         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: 
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] 
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: stk500v2_getsync(): timeout communicating with programmer

avrdude done.  Thank you.

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Programing Motor Shield V2

Post by adafruit_support_bill »

Looks like your bootloader is not responding at all. You might be able to re-flash it. The Arduino.cc forums would be your best resource for details on that.

Crock101
 
Posts: 32
Joined: Wed May 28, 2014 2:19 pm

Re: Programing Motor Shield V2

Post by Crock101 »

I attempted to re-burn the bootloader onto the board but i got this error message:

Code: Select all

C:\Users\Colin\Desktop\Arduino\hardware/tools/avr/bin/avrdude -CC:\Users\Colin\Desktop\Arduino\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega2560 -cstk500v2 -Pusb -e -Ulock:w:0x3F:m -Uefuse:w:0xFD:m -Uhfuse:w:0xD8:m -Ulfuse:w:0xFF:m 

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:\Users\Colin\Desktop\Arduino\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : usb
         Using Programmer              : stk500v2
avrdude: usbdev_open(): did not find any USB device "usb"

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Programing Motor Shield V2

Post by adafruit_support_bill »

What are you using to burn the bootloader?

Crock101
 
Posts: 32
Joined: Wed May 28, 2014 2:19 pm

Re: Programing Motor Shield V2

Post by Crock101 »

Under tools there is an option that says "Burn Bootloader"

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Programing Motor Shield V2

Post by adafruit_support_bill »

You can't do it over the regular USB connection. You ned an ISP programmer of some sort,
http://arduino.cc/en/Hacking/Bootloader ... Bootloader

Crock101
 
Posts: 32
Joined: Wed May 28, 2014 2:19 pm

Re: Programing Motor Shield V2

Post by Crock101 »

Could I send the board to you guys and have you burn the bootloader instead?

User avatar
adafruit_support_bill
 
Posts: 88093
Joined: Sat Feb 07, 2009 10:11 am

Re: Programing Motor Shield V2

Post by adafruit_support_bill »

I'm sorry, but we are not set up for that sort of thing. If the board were in warranty and purchased from us we would replace it for you. But it sounds like you have an older board.

Crock101
 
Posts: 32
Joined: Wed May 28, 2014 2:19 pm

Re: Programing Motor Shield V2

Post by Crock101 »

Ok I'll get an ISP programer and burn the boot loader myself.

Crock101
 
Posts: 32
Joined: Wed May 28, 2014 2:19 pm

Re: Programing Motor Shield V2

Post by Crock101 »

Ok, I burned the bootloader on to the old board and the upload still failed. These lines of code appeared in the communications box at the bottom of the window:

Code: Select all

Binary sketch size: 9,760 bytes (of a 258,048 byte maximum)
C:\Users\Colin\Desktop\Arduino\hardware/tools/avr/bin/avrdude -CC:\Users\Colin\Desktop\Arduino\hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega2560 -cwiring -P\\.\COM8 -b115200 -D -Uflash:w:C:\Users\Colin\AppData\Local\Temp\build7573687462377458720.tmp\Motorcontroller_Test.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:\Users\Colin\Desktop\Arduino\hardware/tools/avr/etc/avrdude.conf"

         Using Port                    : \\.\COM8
         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: 
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14] 
avrdude: Recv: 
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

avrdude done.  Thank you.
I think this maybe a problem with ether avrdude, the cable, for the upload software, but i don't know.

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Programing Motor Shield V2

Post by adafruit_support_mike »

What kind of programmer are you using, and are you sure you've selected the right type under the 'Programmer' menu?

Crock101
 
Posts: 32
Joined: Wed May 28, 2014 2:19 pm

Re: Programing Motor Shield V2

Post by Crock101 »

Yes, also i tried uploading to an other mega i have, and i got the same result.

User avatar
adafruit_support_mike
 
Posts: 67454
Joined: Thu Feb 11, 2010 2:51 pm

Re: Programing Motor Shield V2

Post by adafruit_support_mike »

Hmm.. are you sure you've selected the right target under the Tools -> Board menu?

Crock101
 
Posts: 32
Joined: Wed May 28, 2014 2:19 pm

Re: Programing Motor Shield V2

Post by Crock101 »

Yes I even tried to upload after I re-downloading the software, and used a new cable both with the new and old boards, and i got the same result. Do you think it's a problem with avrdude?

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino Shields from Adafruit”