Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7503

Rust • How I got started

$
0
0
This is what I did to run rust example in the pi pico using a raspberry pi running raspberry pi os trixie and Raspberry Pi Debug Probe:

Code:

apt updateapt install rustup libudev-dev pkg-configrustup target add thumbv6m-none-eabicargo install --locked flip-link cargo install --locked elf2uf2-rscargo install --locked probe-rs-toolswget https://probe.rs/files/69-probe-rs.rulessudo cp 69-probe-rs.rules /etc/udev/rules.d/sudo udevadm control --reloadsudo udevadm triggergit clone https://github.com/rp-rs/rp2040-project-templatecd rp2040-project-templatecargo run
to produce flashable uf2 file
in

Code:

.cargo/config.toml
use

Code:

runner = "elf2uf2-rs"
will create

Code:

target/thumbv6m-none-eabi/debug/rp2040-project-template.uf2
to make vscode code work
in

Code:

.vscode/launch.json
use

Code:

"runtimeExecutable": "${userHome}/.cargo/bin/probe-rs".

Statistics: Posted by harrycambs — Thu Jan 08, 2026 5:25 pm — Replies 0 — Views 15



Viewing all articles
Browse latest Browse all 7503

Trending Articles