This page documents research on creating a userspace executable using the wiring and Processing language used with Arduino.

+

This page documents how to Get Started with writing Arduino code for the embedded Linux boards.

<br />

<br />

−

= Getting Started =

−

== Image ==

−

=== Beaglebone Black ===

+

= Getting Started =

−

The examples have been tested to work on production images later than [https://s3.amazonaws.com/angstrom/demo/beaglebone/BBB-eMMC-flasher-2013.06.20.img.xz 2013.06.20]. You will need a 4 GB (or greater) microSD card for flashing the Beaglebone Black, a process which may take well over 45 minutes. It is documented on the [http://circuitco.com/support/index.php?title=Updating_The_Software CircuitCo wiki]. If you are unsure which image is currently loaded on the Beaglebone Black, check it at [http://www.crashcourse.ca/wiki/index.php/Examining_your_BBB_install_version http://www.crashcourse.ca/wiki/index.php/Examining_your_BBB_install_version].

MinnowBoard

Raspberry Pi

Cloning

Running a demo

Running Blink LED program:

cd Userspace-Arduino/arduino-makefile/examples/BlinkUserspace
make

A binary BlinkUserspace.elf should be created in a directory build-userspace

send-exec is an upload and execute script, which is integrated with the Arduino-Userspace repository. It uses the scp protocol to copy binaries to the Beaglebone Black over USB/ethernet and execute it. You can find it in the utility folder.

To use it, simply do

make upload

You will now see USR LED 1 blinking at one second intervals. Press Ctrl-C to break from the loop.

Check out some of the examples in /path/to/Userscape-Arduino/Arduino-Makefile/examples.

Setup SSH keys (optional)

If you want to avoid a password prompt, you can set up the ssh keys for the Beaglebone Black:

cd ~/.ssh
ssh-keygen -t dsa #set a password or you can leave it blank
ssh-copy-id -i ~/.ssh/id_dsa.pub root@$192.168.7.2 # replace id_dsa.pub by your public key file if some other name is given
ssh root@192.168.7.2 # login and enter password once

Here after, you won't be prompted for a password from this machine

Boards Supported

Beaglebone Black

Initial development is being done with the Beaglebone Black and the Bacon Cape

if you have your Beaglebone Black loaded with a firmware image older that 07.11.2013, you will need copy the Bacon Cape dtbo file on to your beaglebone black