Arduino Nano 33 IOT Board Support Crate
This crate provides a type-safe API for working with the Arduino nano 33 IOT board.
Requirements
- Arduino IDE or arduino CLI installed.
samdpackage installed. You can do this by going to Tools->Board->BoardManager and then searching forsamdor runarduino-cli core install arduino:samd.- Now the arduino distribution contains bossac.exe in
ArduinoData/packages/arduino/tools/bossac/1.7.0[-arduino3]/add it to your path
- linux:
ArduinoDatais likely something like~/.arduino15/ - OSX:
ArduinoDatais likely something like~/Library/Arduino15
- Probably best to install an example sketch via the IDE just to make sure everything is working.
arm-none-eabitools installed, you needgccandobjcopy.
- Note: Alternatively, you can use cargo-binutils, which is likely easier to install on OSX and also easier to use, as it will automatically detect the target
thumbv6m-none-eabirust target installed viarustup target add thumbv6m-none-eabi. Some features may also require nightly rust.
Steps
# If using cargo-binutils, you can `rust-objcopy` with the same flags, or combine these 2 steps with `cargo objcopy`
# If using bossac
# If using arduino-cli
(You may need to use --port with something like /dev/ttyACM0//dev/ttyACM1, or /dev/tty.usbmodemNNNNN on OSX)
Notes
- It may help to double-press the center button to reset when re-flashing the device. This sets the device in a bootloader mode.
- For the usb example,
picocomis a good simple terminal serial emulator, installable with your os's package manager orbrew- On OSX, after flashing the tty for serial communication may be different, for example
/dev/tty.usbmodemTEST1
- On OSX, after flashing the tty for serial communication may be different, for example