Skip to content

jorgeclaro/pi-pico-rs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pi-pico-rs

Program a Raspberry Pi Pico with pure Rust.

Get Started

  1. Install dependencies
sudo apt update
sudo apt install pkg-config
sudo apt install libudev-dev
  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

Only generate UF2 binary

  1. Open .cargo/config.toml file
  2. Remove -d on runner setting to skip auto-flash and only generate UF2 file

Additional Resources

About

Rust on the Raspberry Pi Pico

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%