Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.23 KB

README.md

File metadata and controls

50 lines (33 loc) · 1.23 KB

pi-pico-rs

Program a Raspberry Pi Pico with pure Rust.

Get Started

  1. Install the latest version of Rust and the thumbv6m-none-eabi target. This is the primary language we use to write programs for the Pico
https://www.rust-lang.org/tools/install
rustup self update
rustup update stable
rustup target add thumbv6m-none-eabi
  1. Install the Rust port of ELF2UF2. This is used for flashing the program to the board
cargo install elf2uf2-rs
  1. Install Clippy. This is used to help lint the Rust code
rustup component add clippy
  1. Install just. This is used for running certain tasks, (just build will build the program, for example)
cargo install just
  1. Build the project to make sure everything's setup
just build

Flashing the program to the Pico

To flash the program to the Pico:

  1. Plug in the Pico to your host machine in bootloader mode (with the on-board button held down)
  2. Run just flash

Additional Resources