This package is minimal example how to run program written in Rust on Arduino Nano 33 BLE.
It uses Nordic nRF52480 processor, but it has different interface to flash new software than examples from nrf-hal
.
To flash this example package, simply run ./build.sh
.
You may need to change path to device from /dev/ttyACM0
to something different in build.sh
file.
Using Docker is not strictly necessary and it exists to document what dependecies need to be installed on the system to use this example. You can compile and flash it yourself using following commands:
cargo build --target thumbv7em-none-eabihf --release
arm-none-eabi-objcopy -O binary target/thumbv7em-none-eabihf/release/rust-arduino-nano-33-blink target/blink.bin
arduino-cli upload -v -b arduino:mbed_nano:nano33ble -p /dev/ttyACM0 -i target/blink.bin
- Check if device is connected with
lsusb
. - Check if device is present on different tty, e.g: /dev/ttyACM1 with
ls /dev | grep ACM
- Check if you have write permission
stty -F /dev/ttyACM0 1200