Getting Started

Note

Only the Arduino Due board is supported!

Installation

  1. Install Rust. Change the default toolchain to nightly. Copy default host triple and modify PATH variable from the printed Current installtion options.

    curl https://sh.rustup.rs -sSf | sh
    
  2. Source the environment setup file.

    source $HOME/.cargo/env
    
  3. Install bindgen and download the Rust sources.

    cargo install bindgen
    rustup component add rust-src
    
  4. Recursively clone the Rafiki repository.

    git clone --recursive https://github.com/eerimoq/rafiki
    
  5. Build and run the hello world example.

    cd rafiki
    source setup.sh
    cd examples/hello_world
    make -s -j4 BOARD=arduino_due run