This repo is the code used for the Embedded Rust Hardware Debug Probe workshop taught at the Seattle Rust User Group in November 2024.
-
Install Rust.
-
Add dependencies:
`sudo apt install -y pkg-config libudev-dev cmake git``dnf install libusbx-devel libudev-devel cmake git`
- No platform-specific requirements. Proceed to
All Platforms, below.
- Install CMake and add to
$PATH.
i. Install probe-rs:
cargo install probe-rs --locked
-
Set up Hardware: Set up as per schematic diagram
-
Teach
rustchow to compile for the Raspberry Pi Pico's RP2040 processor:rustup target add thumbv6m-none-eabi -
Test Your Setup: After
git cloneing this repo,cdinto the crate root folder and typecargo runto verify your board is set up correctly.
If the LED is flashing, your board is set up.
Pressing the button will change the LED flashing mode in the following sequence: LED flashing modes:
flowchart LR
FastFlash --> SlowFlash --> On --> Off --> FastFlash
Long-pressing the button always resets to the first (FastFlash) LED state.
- Begin debugging:
git checkout bugsto switch to a buggy version of this repo.cargo runwill compile and flash the buggy code. The LED will no longer flash. Now it is up to you to troubleshoot, find and fix the bug(s).
Licensed under either:
- MIT license (see LICENSE-MIT file)
- Apache License, Version 2.0 (see LICENSE-APACHE file) at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.