0

Green light but can't upload sketch to board
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Green light but can't upload sketch to board

by juvation on Fri Jun 20, 2008 1:07 am

hi there, Arduino newbie here.

i bought my Arduino Decimilia from ladyada and followed all the instructions. i have a MacBook Pro with 10.4.11, my IDE is set to Decimilia, and i've tried ports tty.usbserial-6004pNe and cu.usbserial-6004pNe with the same results - green light on the board but the standard "can't see board" type errors -

avrdude: stk500_getsync(): not in sync: resp=0x20
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x20

- when trying to upload. i'd happily view the troubleshooting guide on the arduino.cc website as it suggests, but the damn site is down all the time!

thanks for any help with his. i'm a C/C++/etc veteran but i've little to no experience with embedded environments.
juvation
 
Posts: 20
Joined: Fri May 23, 2008 2:45 pm

by adafruit on Mon Jun 23, 2008 11:32 pm

do you have another computer you could try it out with? (just to figure out whether its the computer or arduino)

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

by juvation on Tue Jun 24, 2008 1:16 am

ladyada wrote:do you have another computer you could try it out with? (just to figure out whether its the computer or arduino)


thanks for the response.

i have only a headless Linux box other than the Mac. if someone could point me at a howto or equivalent i'd be happy to try it with that.

i just tried again with the Mac, but with a USB 1.0 hub instead of the 2.0 port on the machine itself. no difference. interestingly i was kinda expecting the /dev device name to change, but it didn't. i don't know if that's significant.
juvation
 
Posts: 20
Joined: Fri May 23, 2008 2:45 pm

by juvation on Tue Jun 24, 2008 2:26 am

juvation wrote:
ladyada wrote:do you have another computer you could try it out with? (just to figure out whether its the computer or arduino)


OK so i tried getting it going on the Linux box, using the instros at --

http://paul.graysonfamily.org/thoughts/avrlinux/

i got all the way through with only one problem - i had to use an earlier version of avr-libc because 1.6.2 wouldn't compile on Fedora. a quick googling revealed that the resolution of this problem was CANTFIX indicating that maybe i'm not alone in this. anyway 1.4.8 compiled ok.

i then tried to build & upload the blink program. the compile worked but uisp got a permissions error on /dev/ttyS1. so i ran the make as root. then the tools worked, but uisp the reported that the programmer wasn't responding.

sorry i don't know enough about this environment to know whether this *should* have worked or not! :-)

any help appreciated.
juvation
 
Posts: 20
Joined: Fri May 23, 2008 2:45 pm

by adafruit on Tue Jun 24, 2008 2:58 pm

hrm. try a different version of the Arduino software on the mac, maybe?

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

by juvation on Tue Jun 24, 2008 3:09 pm

ladyada wrote:hrm. try a different version of the Arduino software on the mac, maybe?


i was using version 11. i just tried version 9 and got the same problem. some flashing lights on the board and then this error message --

avrdude: stk500_getsync(): not in sync: resp=0xa0
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x20

given that the Mac and the Linux box are behaving somewhat the same, might it be time to try another Arduino board perchance?
juvation
 
Posts: 20
Joined: Fri May 23, 2008 2:45 pm

by mngrif on Wed Jun 25, 2008 6:37 pm

Shouldn't that be /dev/ttyUSB0 on your linux box?

This is with ubuntu 8.04.

Code: Select all | TOGGLE FULL SIZE
dmesg:
[   31.980607] usb 3-1.3: FTDI USB Serial Device converter now attached to ttyUSB0

uname -a:
Linux lennier 2.6.24-19-generic #1 SMP Wed Jun 4 15:10:52 UTC 2008 x86_64 GNU/Linux
mngrif
 
Posts: 47
Joined: Sat Jun 07, 2008 6:36 am

by juvation on Wed Jun 25, 2008 9:23 pm

mngrif wrote:Shouldn't that be /dev/ttyUSB0 on your linux box?

This is with ubuntu 8.04.

Code: Select all | TOGGLE FULL SIZE
dmesg:
[   31.980607] usb 3-1.3: FTDI USB Serial Device converter now attached to ttyUSB0

uname -a:
Linux lennier 2.6.24-19-generic #1 SMP Wed Jun 4 15:10:52 UTC 2008 x86_64 GNU/Linux


thanks for the response.

i'm on Fedora Core 2 (IIRC). i have a similar entry in my /var/log/messages --

Code: Select all | TOGGLE FULL SIZE
 Jun 25 19:29:42 lusus kernel: usb 1-2: FTDI FT232BM Compatible converter now attached to ttyUSB0 (or usb/tts/0 for devfs)


but when i swapped out /dev/ttyS1 for /dev/ttyUSB0 in the uisp command, i got this error almost immediately -

Code: Select all | TOGGLE FULL SIZE
Device is not responding correctly.


with no other uisp output.
juvation
 
Posts: 20
Joined: Fri May 23, 2008 2:45 pm

by adafruit on Wed Jun 25, 2008 10:39 pm

ya sounds like a problem with the arduino. if you ordered it from adafruit.com send an email to support@adafruit

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

by juvation on Thu Jul 03, 2008 2:59 pm

ladyada wrote:ya sounds like a problem with the arduino. if you ordered it from adafruit.com send an email to support@adafruit


happy to report that a replacement Arduino from Ladyada worked first time.

thanks guys!
juvation
 
Posts: 20
Joined: Fri May 23, 2008 2:45 pm

Please be positive and constructive with your questions and comments.