todbot / arduinoonbeaglebone Goto Github PK
View Code? Open in Web Editor NEWArduino and AVR compilation tools for BeagleBone (currently command-line only)
Arduino and AVR compilation tools for BeagleBone (currently command-line only)
Tod, thank you for publishing this project; I'm looking forward to using it.
I'm running into an issue which I hope you can help me resolve. When I make for a Leonardo board, I get the following:
$ make
mkdir -p .lib//usr/local/avr/arduino/hardware/arduino/cores/arduino/
/usr/local/avr/bin/avr-g++ -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -mmcu=atmega32u4 -DF_CPU=16000000L -DARDUINO=100 -I. -Iutil -Iutility -I/usr/local/avr/arduino/hardware/arduino/cores/arduino -I/usr/local/avr/arduino/hardware/arduino/variants/leonardo/ -c -o .lib//usr/local/avr/arduino/hardware/arduino/cores/arduino/USBCore.cpp.o /usr/local/avr/arduino/hardware/arduino/cores/arduino/USBCore.cpp
/usr/local/avr/arduino/hardware/arduino/cores/arduino/USBCore.cpp:78:2: error: 'USB_VID' was not declared in this scope
/usr/local/avr/arduino/hardware/arduino/cores/arduino/USBCore.cpp:78:2: error: 'USB_PID' was not declared in this scope
/usr/local/avr/arduino/hardware/arduino/cores/arduino/USBCore.cpp:81:2: error: 'USB_VID' was not declared in this scope
/usr/local/avr/arduino/hardware/arduino/cores/arduino/USBCore.cpp:81:2: error: 'USB_PID' was not declared in this scope
/usr/local/avr/arduino/hardware/arduino/cores/arduino/USBCore.cpp: In function 'int USB_Send(u8, const void_, int)':
/usr/local/avr/arduino/hardware/arduino/cores/arduino/USBCore.cpp:270:5: warning: unused variable 'zero'
make: *_* [.lib//usr/local/avr/arduino/hardware/arduino/cores/arduino/USBCore.cpp.o] Error 1
I am using a Beaglebone Black running Angstrom Linux. If I choose any other board (e.g. uno) I am able to run make successfully; it is only with Leonardo that I run into this problem. There is nothing else special or unique about my config; it's pretty much off-the-shelf.
Thanks in advance!
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.