Skip to content
Back to skills

Probe Rs Knowledge Patch

ASecurity

probe-rs

  • 25 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 1, 2026
developmentrustgodebuggingapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill probe-rs-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Probe Rs Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Probe Rs Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-probe-rs-knowledge-patch-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-probe-rs-knowledge-patch-nevaberry-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: probe-rs-knowledge-patch
description: probe-rs
version: "0.32.0"
license: MIT
metadata:
  author: Nevaberry
---


# probe-rs compatibility guidance

Load this skill when migrating probe-rs integrations, configuring CLI or debugger
workflows, or checking probe and target support. Use the topic references for
the detailed API changes, device conditions, and behavior fixes.

## Reference index

| Reference | Topics |
| --- | --- |
| [CLI and configuration](references/cli-and-configuration.md) | Command defaults, presets, cargo-embed, output, scripts, Linux setup, completions |
| [Debugger](references/debugger.md) | Debug CLI, console commands, registers, variables, disassembly, breakpoints, lockup |
| [Servers and profiling](references/servers-and-profiling.md) | Remote probes, DAP, GDB, RPC, program-counter and call-stack sampling |
| [Library and architecture](references/library-and-architecture.md) | Crates, plugins, registries, sessions, ARM and RISC-V interfaces, memory access |
| [Probes and transports](references/probes-and-transports.md) | Selectors, enumeration, JTAG, SWD, drivers, permissions, connection errors |
| [Flashing](references/flashing.md) | Flash options, verification, progress APIs, erase ranges, algorithms, ESP images |
| [RTT, tests, and semihosting](references/rtt-tests-and-semihosting.md) | RTT input/output, control blocks, embedded tests, semihosting files |
| [Targets](references/targets.md) | Target YAML, device support, debug unlock, reset sequences, memory maps, flash fixes |

## Command migrations and changed defaults

`probe-rs debug` takes firmware as an optional positional argument; `--exe` is
removed. It adds `--launch`, `--verify`, and `--preverify`, and accepts debugger
commands through `-c` or `--command`.

```sh
probe-rs debug -c 'info reg' firmware.elf
```

`probe-rs attach` can attach without a firmware path. In both `run` and `attach`,
replace `--rtt-scan-memory` with `--scan-region`, which accepts an address or range.

```sh
probe-rs attach --scan-region 0x20000000
```

`probe-rs run` and `probe-rs attach` catch resets and hardfaults by default. Use
`--no-catch-reset` and `--no-catch-hardfault` to disable the respective catches.
The old `--catch-reset` and `--catch-hardfault` flags are accepted and have no effect.

Replace `rtthost` with `probe-rs attach` or `probe-rs run`. Both show an input
prompt when RTT down channels are present; Ctrl+D cycles through those channels.
`attach` and `dap-server` include the terminating newline when sending a line
to an RTT down channel.

`probe-rs dap-server` uses stdin and stdout by default, allowing a DAP client to
launch it as a child process. Pass `--port <port>` for TCP. Update clients of the
`stack_trace` RPC to decode a structured response; it previously returned a plain string.

`probe-rs info` attempts chip autodetection and prints the chip name. Use
`probe-rs info --verbose` for the previous detailed output or `probe-rs mi info`
for the chip name as JSON. `probe-rs read` now defaults to `hex-table`.

## Library and target-definition migrations

Low-level debugger APIs moved from the `probe-rs` crate's `debug` feature to
`probe-rs-debug`; update dependencies and imports that use those APIs.
The GDB server and `FlashLayout` visualizer moved from the library to the CLI.
Start the server with `probe-rs gdb`.

Replace `vendor::register_vendor` with `plugin::register_plugin` and a `Plugin`
to register additional targets, image formats, probe drivers, or vendor support.
Espressif device support lives in the `probe-rs-espressif` crate.

`Registry` replaces global target registration and lookup functions. Use methods
such as `registry.add_target_from_yaml(...)` and `registry.get_target_by_name(...)`,
then pass the custom registry to `Probe::attach_with_registry` or
`Probe::attach_under_reset_with_registry`. Automatic attachment can use a supplied
`Registry`; `auto_attach` accepts speed, protocol, and permissions through `SessionConfig`.

Creating a `Session` for a non-ARM target omits the initial halt of all cores.
Explicitly halt any cores your workflow needs stopped. `CoreInterface::on_session_stop`
and `debug_on_sw_breakpoint` on both `Core` and `CoreInterface` were removed.
Architecture implementations should enable software breakpoints during connection.

Rename `ArmProbeInterface` to `ArmDebugInterface`. Replace `get_dap_access` and
`get_swd_sequence` on `ArmMemoryInterface` with `get_arm_debug_interface`.
`ArmCommunicationInterface` no longer uses typestate; update signatures that
specify an ARM communication state as a type parameter.

Registers generated by `define_ap_register!`, including `CSW`, `IDR`, and `BASE`,
are newtypes over `u32`. Use `reg.Field()` and `reg.set_Field(value)` instead of
public fields. Enum getters return `Unknown(bits)` for unrecognized encodings.

In ARM target definitions, rename `psel` to the optional `targetsel` field.
Set it to the device's selector value when needed, such as `targetsel: 0x12345678`.
NXP target names omit the redundant `NXP` prefix; update affected chip selections.

Building from source requires Rust 2024 edition support. CI binaries are built
on Ubuntu 22.04, which can affect the shared-library versions required to run them.

## Probe and transport API migrations

Obtain JTAG access through `Probe::try_as_jtag_probe`; JTAG-specific operations
were removed from `Probe` and `DebugProbe`. Rename `JTAGAccess` to `JtagAccess`,
and call `select_target` there instead of on `RawJtagIo`.
Use `JtagAccess::raw_sequence` with `probe_rs::probe::JtagSequence` for raw sequences;
replace `JtagChainItem` with `ScanChainElement`.

Replace `Probe::try_into_jlink` with `try_into()` and specify the desired concrete
type. `DebugProbe` implements `Any`, and its J-Link-specific conversion method
was removed. Custom SWD implementations receive one stream of enum values
instead of separate bit streams.

Pass a device selector to `ProbeLister::list` or `Lister::list`.
`DebugProbeSelector` serializes and deserializes as a string such as `"0483:374b"`.
Use `FromStr` for string-to-`DebugprobeSelector` conversions affected by the
removed conversion traits.

Use `VID:PID:` for a probe without a serial number, retaining the trailing colon
as in `1234:5678:`. FTDI selectors use the interface suffix as a channel index:
`--probe 0403:6010-1` selects B; indices 0 through 3 correspond to A through D.

Use `--scan-chain` with `probe-rs info` for a manual override, or set
`force_scan_chain: true` in the target YAML JTAG configuration to use its chain
without auto-detection. `JtagAccess::set_expected_scan_chain()` supplies an expected
chain, while `set_scan_chain()` sets the actual chain.

## Flash API and image migrations

`DownloadOptions<'p>` and `FlashProgress<'p>` carry lifetimes so progress reporting
can borrow short-lived data. `ProgressEvent` uses unified phase events that also
cover flash content verification. `FlashProgress` wraps an `FnMut` callback, no
longer implements `Clone`, and is passed to flasher APIs as `&mut progress`.

Replace `erase_sectors` with `flashing::erase`. Supply address ranges to
`flashing::erase` and `flashing::blank_check` when selecting the flash area.
Library callers must supply `read_flasher_rtt` to
`probe_rs::flashing::{erase, erase_all, run_blank_check}` and can use
`FlashLoader::read_rtt_output` to read flash-loader RTT output.

Replace the ESP32-specific `pc_flash_size` YAML field with a `FlashSize` entry in
`vendor_functions`. `target-gen` extracts symbols such as `VendorFunc_FlashSize`
as vendor function entry points.

```yaml
vendor_functions:
  FlashSize: 0x100
```

The default ESP32 bootloader supplied by espflash v4 requires an application
descriptor. For `esp-hal` firmware, add `esp_bootloader_esp_idf` and include its
application descriptor. probe-rs can check ESP chip/firmware compatibility and
checks for the application descriptor required by the ESP-IDF bootloader.

## Presets, flashing, and remote probes

Define named option sets in the probe-rs configuration file and select one with
`--preset my-board`. Cargo tools accept `cargo flash --preset my-board` and
`cargo embed --preset my-board`; without an explicit selection, preset lookup
falls back to `default` if defined. To select a cargo-embed configuration file:

```sh
PROBE_RS_EMBED_CONFIG_FILE=config/board.toml cargo embed
```

| Task | Option or setting |
| --- | --- |
| Override a region's flash algorithm | `--prefer-flash-algorithm` |
| Omit a section from programming | `--skip-section .my_section` |
| Request whole-chip erase with `cargo flash` | `--chip-erase` |
| Collect flash-loader RTT output | `--read-flasher-rtt`; `rtt_poll_interval` defaults to 20 ms |
| Select the ESP-IDF application partition | `idf-target-app-partition` |
| Set ESP-IDF image frequency and mode | `--idf-flash-freq` and `--idf-flash-mode` |
| Check existing flash before programming in `cargo embed` | `preverify = true` in flashing configuration |
| Verify through debugger configuration | `verifyBeforeFlashing` checks existing contents; `verifyAfterFlashing` verifies the result |

Build `cargo-flash` with the `remote` feature for remote-server flashing; pass
the address with `--host` and authentication token with `--token`.
The `remote` and `serve` commands can communicate over Unix sockets.

## Debugging, GDB, and profiling

The debug console supports `bt`, `bt yaml`, `info break`, `info reg`, and `clear`.
Use `step` to execute one instruction or `reset` to reset the target. Write a core
or peripheral register with `wreg <name> <value>`; core registers can also be
written through the DAP Registers scope. `info reg` lists unreadable registers
with their errors. Source breakpoint locations use `file:line[:column]`, such as
`main.rs:42:5`.

Use `x/8i $lr` to disassemble eight instructions starting at the link register's
address. Disassembly also works without debug symbols.

`probe-rs gdb --gdb gdb-multiarch` launches the GDB client from the server command.
Run `load` in GDB to program firmware. The GDB server supports Xtensa targets;
Xtensa stack unwinding works when unwind information is available.

`probe-rs profile` can sample the program counter through ARM DWT PCSR.
Use `probe-rs profile callstack` to sample call stacks, then load the profile
with `samply` for Firefox Profiler. The sampler can recover call stacks using
DWARF information, including when frame pointers are unavailable.

## RTT, tests, and process behavior

`probe-rs debug` reads RTT output by default; `--no-rtt` disables reads.
The console command `rtt write 0 status` sends `status` to down channel 0.
Decoded defmt messages use one line by default; choose `twoline` for the previous layout.

`probe-rs run` and `probe-rs attach` accept `--target-output-file` for a file or
named pipe. `probe-rs run --no-timestamps firmware.elf` suppresses timestamps
for String and defmt output; `--no-timestamps` also works with `probe-rs attach`.

The embedded test runner accepts `--ignored` for only ignored tests and
`--include-ignored` for both ignored and regular tests. probe-rs can read `embedded_test`
cases from ELF. Use console command `test` when debugging `embedded-test` firmware.

Firmware-reported errors can cause a failure exit status. Shutdown is graceful
on `SIGTERM`. The CLI accepts `--semihosting-file`; semihosting file opens that
do not require write access preserve existing contents.

## Target conditions to check

probe-rs supports CC2340R5 devices with a valid CCFG; provision a blank device with UniFlash
before programming through probe-rs. MIMXRT definitions list all possible memory
regions; check the target's FlexRAM configuration to determine which are accessible.

Select `nRF5340_xxAA_APPONLY` to operate on the application core without accessing
or erasing the network core. Declare a 64-bit RISC-V core with `type: riscv64`.
See the target reference for CH32 family migration, device-specific flash algorithms,
debug unlock, and reset behavior.

Files in this skill

  • SKILL.md11.7 KB
  • coverage.json1 KB
  • references/cli-and-configuration.md3.5 KB
  • references/debugger.md3.3 KB
  • references/flashing.md3.8 KB
  • references/library-and-architecture.md7.5 KB
  • references/probes-and-transports.md6.4 KB
  • references/rtt-tests-and-semihosting.md3 KB
  • references/servers-and-profiling.md3.4 KB
  • references/targets.md7.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.