17个版本 (破坏性更新)
0.14.0 | 2024年5月3日 |
---|---|
0.13.0 | 2023年7月15日 |
0.12.1 | 2022年5月8日 |
0.12.0 | 2022年3月29日 |
0.2.1 | 2019年3月3日 |
#26 in #embedded-hal
1.5MB
24K SLoC
Adafruit Feather M0 开发板支持包
此包提供用于与Adafruit Feather M0 开发板一起工作的类型安全API。
先决条件
- 安装交叉编译工具链
rustup target add thumbv6m-none-eabi
- 根据您的平台要求安装cargo-hf2 hf2引导加载程序闪存工具
上传示例
查看存储库中的示例
https://github.com/atsamd-rs/atsamd/tree/master/boards/feather_m0/examples
- 位于此目录下
cd boards/feather_m0
- 将您的设备置于引导加载程序模式,通常通过连续按两次复位按钮。
- 一步构建和上传
$ cargo hf2 --release --example blinky_basic
Finished release [optimized + debuginfo] target(s) in 0.19s
Searching for a connected device with known vid/pid pair.
Trying Ok(Some("Adafruit Industries")) Ok(Some("PyBadge"))
Flashing "/Users/User/atsamd/boards/feather_m0/target/thumbv7em-none-eabihf/release/examples/blinky_basic"
Finished in 0.079s
$
注意,某些较旧的Feather M0开发板不支持HF2。对于这些开发板,您可以使用atsamd crate文档中描述的bossa
工具进行上传。
依赖项
~6.5MB
~139K SLoC