/bela-sys

Rust bindings for the Bela platform

Primary LanguageRustOtherNOASSERTION

bela-sys

Crude bindings for the Bela platform, to cross-compile from a Linux or OSX host.

Setup

Install the right tool chain for the Beaglebone black:

rustup target add armv7-unknown-linux-gnueabihf
rustup toolchain install armv7-unknown-linux-gnueabihf

With a bela board plugged in and accessible at bela.local, run:

./bela_setup_local.sh

This downloads the right linker, pulls in some required files from the board, and sets up the $PATH environment variable. This MUST be called in each terminal session that will be used to call cargo, but will only download the files once.

Testing

This should output a sine wave at 440Hz:

cargo build --target=armv7-unknown-linux-gnueabihf --example tone
scp target/armv7-unknown-linux-gnueabihf/debug/examples/tone root@bela.local:~
ssh root@bela.local
# ...
# on the bela board
./tone

Licence