This crate provides a type-safe API for working with the Arduino nano 33 IOT board.
samd package installed. You can do this by going to Tools->Board->BoardManager and then searching for samd or run arduino-cli core install arduino:samd.ArduinoData/packages/arduino/tools/bossac/1.7.0[-arduino3]/ add it to your path
ArduinoData is likely something like ~/.arduino15/ArduinoData is likely something like ~/Library/Arduino15arm-none-eabi tools installed, you need gcc and objcopy.
thumbv6m-none-eabi rust target installed via rustup target add thumbv6m-none-eabi. Some features may also require nightly rust.```bash cargo build --release --example blinky_basic
rust-objcopy with the same flags, or combine these 2 steps with cargo objcopyarm-none-eabi-objcopy -O binary target/thumbv6m-none-eabi/release/examples/blinkybasic target/blinkybasic.bin
bossac -i -d -U true -i -e -w -v target/blinky_basic.bin -R
arduino-cli upload -i target/blinkybasic.bin -b arduino:samd:nano33_iot -p /dev/ttyACM0
``
(You may need to use--portwith something like/dev/ttyACM0//dev/ttyACM1, or/dev/tty.usbmodemNNNNN` on OSX)
picocom is a good simple terminal serial emulator, installable with your os's package manager or brew
/dev/tty.usbmodemTEST1