Find a file
2024-10-09 16:18:06 -05:00
.cargo Add comments 2024-10-09 16:07:13 -05:00
src Add comments 2024-10-09 16:07:13 -05:00
.envrc Add comments 2024-10-09 16:07:13 -05:00
.gitignore Add comments 2024-10-09 16:07:13 -05:00
build.rs Add comments 2024-10-09 16:07:13 -05:00
Cargo.lock Add comments 2024-10-09 16:07:13 -05:00
Cargo.toml Add comments 2024-10-09 16:07:13 -05:00
flake.lock Add comments 2024-10-09 16:07:13 -05:00
flake.nix Add readme 2024-10-09 16:13:17 -05:00
memory.x Add comments 2024-10-09 16:07:13 -05:00
readme.md Credit 2024-10-09 16:18:06 -05:00
rp235x_riscv.x Add comments 2024-10-09 16:07:13 -05:00
rust-toolchain.toml More clear instrucions, add RISC-V target instructions 2024-10-09 16:17:22 -05:00

Raspberry Pi Pico 2 - with Rust!

Mostly stolen from https://github.com/rp-rs/rp-hal/tree/main/rp235x-hal-examples

Setup

  1. Get rustup and picotool by running direnv allow (or however you like)
  2. Install Rust components via rustup by running rustup show

Flashing

Hold your Pi Pico 2's BOOTSEL button while plugging it in to your machine. Then run cargo run --release.

To use the RISC-V target, run cargo run --release --target riscv32imac-unknown-none-elf.