brew cask install gcc-arm-embedded
# for on-chip debugging
# Forewarning: Semihosting operations are very slow. Like, each WRITE operation can take hundreds of milliseconds
brew install open-ocd
# for samd11, samd21:
rustup target add thumbv6m-none-eabi
# for samd51, same54:
rustup target add thumbv7em-none-eabihf
# for uploading the code onto devices with bootloaders
cargo install cargo-hf2
-
Hit the device reset button twice.
-
Build and upload one of the programs:
cd smart_compass_feather_m0 ./bin/build-and-upload.sh test_lights # OR cd smart_compass_stm32f3_discovery cargo hf2 --release --bin smart_compass
- https://docs.rs/cortex-m-semihosting/0.3.5/cortex_m_semihosting/
- https://github.com/atsamd-rs/atsamd/blob/master/boards/feather_m0/README.md
- https://github.com/atsamd-rs/atsamd
- https://crates.io/crates/cargo-hf2
- https://github.com/smart-leds-rs/smart-leds-samples/blob/master/stm32f0-examples/examples/stm32f0_ws2812_spi_blink.rs
- https://docs.rs/crate/adafruit_gps/0.3.6/source/examples/simple.rs
- https://gitter.im/smart-leds-rs/community?at=5c926bc7fcaf7b5f73e7158c