probe-rs replaces OpenOCD + GDB for most embedded Rust workflows. It is written in Rust, supports CMSIS-DAP, ST-Link, J-Link, and speaks the same protocols as OpenOCD but with a much cleaner interface and native Cargo integration.
Core tools:
cargo-flash: flash a binary to the target with one commandcargo-embed: flash + open RTT terminal + optionally GDBprobe-rs run: run with RTT output, integrates withdefmt
RTT (Real-Time Transfer): A debug channel that works by the host reading/writing a ring buffer in the target's RAM over the debug probe — no UART needed, near-zero overhead, works at full probe speed. Combined with defmt, this is the standard logging approach for embedded Rust.
Flash algorithm: probe-rs uses target-specific flash algorithms (also in Rust or loaded as blobs) to erase and program flash. Support for custom targets requires writing or porting a flash algorithm — relevant for Cerberus-OS on a non-standard RISC-V board.
GDB server: probe-rs can serve a GDB remote protocol target on localhost. Connect standard GDB or VS Code's cortex-debug extension. Breakpoints, watchpoints, register inspection all work.