Crates.io | teensy4-bsp |
lib.rs | teensy4-bsp |
version | 0.5.0 |
source | src |
created_at | 2020-10-16 14:14:14.325705 |
updated_at | 2024-05-27 22:41:06.344188 |
description | Rust-based BSP for the Teensy 4. Part of the teensy4-rs project. |
homepage | |
repository | https://github.com/mciantyre/teensy4-rs |
max_upload_size | |
id | 300648 |
size | 119,057 |
A collection of crates for Rust development on the Teensy 4. Supports the following boards:
master
)A Rust installation. Install Rust using rustup
. We support the
latest, stable Rust toolchain.
The thumbv7em-none-eabihf
Rust target, which may be installed
using rustup
:
rustup target add thumbv7em-none-eabihf
A capable objcopy
for transforming Rust binaries into hex files.
The documentation and tooling in the project uses the LLVM objcopy
provided by cargo-binutils
. Install cargo-binutils
if you
want to precisely follow this documentation.
To download programs to your Teensy 4, you'll need either a build of
teensy_loader_cli
, or the Teensy Loader Application. The
latter is available with the Teensyduino add-ons.
Use our cargo-generate
template, teensy4-rs-template
, to bootstrap
your own teensy4-rs
project based on these libraries:
cargo install cargo-generate
cargo generate --git https://github.com/mciantyre/teensy4-rs-template --name hello-world
cd hello-world
cargo objcopy --release -- -O ihex hello-world.hex
Download hello-world.hex
to your Teensy 4!
See the Rust documentation for API information. In particular, study the
imxrt-hal
APIs, since the BSP forwards many of the HAL's interfaces:
cargo doc --open
Try the various examples in this project's examples
directory if
you'd like to test your system.
We welcome support! A great way to contribute is to start using the crates to develop Teensy 4 applications. Submit an issue to help us identify bugs, feature requests, or documentation gaps. See CONTRIBUTING.md to learn about the best issue tracker for your request.
If you want to directly contribute to the teensy4-rs
project, read the
development guidance in CONTRIBUTING.md.
cortex-m-rt
crate.Licensed under either of
at your option.