todbot / ArduinoOnBeagleBone

Arduino and AVR compilation tools for BeagleBone (currently command-line only)
7 stars 2 forks source link

Upload issue #1

Open jessecravens opened 11 years ago

jessecravens commented 11 years ago

I am able to compile the Ardiuno sketch, but unable to upload. I get the following error. Any ideas?

root@beaglebone:~/code/arduino_projects/NodeWebClient# make upload \nUploading to board... stty -F /dev/ttyACM0 hupcl /usr/local/avr/bin/avrdude -DV -p atmega328p -P /dev/ttyACM0 -c arduino -b 115200 -U flash:w:NodeWebClient.hex:i

avrdude: stk500_getparm(): (a) protocol error, expect=0x14, resp=0x00 avrdude: stk500_initialize(): (b) protocol error, expect=0x10, resp=0x03 avrdude: initialization failed, rc=-1 Double check connections and try again, or use -F to override this check.

avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x10

avrdude done. Thank you.

make: *\ [upload] Error 1

todbot commented 11 years ago

That looks like the error I get when trying to upload to a different type of Arduino than my config settings are. Make sure to set your BOARD variable to match the Arduino board you're using.

jessecravens commented 11 years ago

Hmmm ... double checked, but Im using the Uno so Ive left it as default

export BOARD=uno

todbot commented 11 years ago

Weird. And you're sure /dev/ttyACM0 is the serial port of your Uno? If that's good, I'm not sure what's going on.