2 releases
0.1.1 | Oct 18, 2024 |
---|---|
0.1.0 | May 3, 2024 |
#2371 in Embedded development
146 downloads per month
1.5MB
26K
SLoC
Adafruit Matrix Portal M4 Board Support Crate
This crate provides a type-safe API for working with the Adafruit Matrix Portal M4 board.
Prerequisites
- Install the cross compile toolchain
rustup target add thumbv7em-none-eabihf
- Install cargo-hf2 the hf2 bootloader flasher tool however your platform requires
Uploading an example
Check out the repository for examples:
https://github.com/atsamd-rs/atsamd/tree/master/boards/matrix_portal_m4/examples
- Be in this directory
cd boards/matrix_portal_m4
- Put your device in bootloader mode usually by hitting the reset button twice.
- Build and upload in one step
$ cargo hf2 --release --example blinky_basic --vid 0x239a --pid 0x00c9
Finished release [optimized] target(s) in 0.74s
Trying Ok(Some("Adafruit Industries")) Ok(Some("Matrix Portal M4"))
Flashing "/Users/User/atsamd/boards/matrix_portal_m4/target/thumbv7em-none-eabihf/release/examples/blinky_basic"
Finished in 0.051s
$ cargo hf2 --release --example pwm --vid 0x239a --pid 0x00c9 --features="unproven"
Finished release [optimized] target(s) in 0.67s
Trying Ok(Some("Adafruit Industries")) Ok(Some("Matrix Portal M4"))
Flashing "/Users/User/atsamd/boards/matrix_portal_m4/target/thumbv7em-none-eabihf/release/examples/pwm"
Finished in 0.146s
Matrix Portal M4
Dependencies
~7.5MB
~185K SLoC