Skip to content

Conversation

@sdonnan
Copy link
Contributor

@sdonnan sdonnan commented Oct 2, 2025

By default probe-rs uses a hardcoded debug adapter speed. For adapters that cannot meet that exact speed they may fall back to a slower one rather than use an internal sane default. This can slow down operation on some adapters (like mculink).

This change adds and optional command line flag to provide a speed setting.

An example of the impact this setting has:

~/w/h/t/release (feature/set-probe-speed)> time ./humility flash -F
humility: attached to archive
humility: attaching with chip set to "STM32H753ZITx"
humility: attached via CMSIS-DAP
humility: archive appears to be already flashed; forcing re-flash
humility: flashing done

________________________________________________________
Executed in   48.68 secs

~/w/h/t/release (feature/set-probe-speed)> time ./humility --speed 8000 flash -F
humility: attached to archive
humility: attaching with chip set to "STM32H753ZITx"
humility: attached via CMSIS-DAP
humility: archive appears to be already flashed; forcing re-flash
humility: flashing done

________________________________________________________
Executed in   34.44 secs

Tested with stlinkv3, mculink, and another generic daplink device.

@sdonnan sdonnan force-pushed the feature/set-probe-speed branch from 1f27607 to 1b9b842 Compare October 2, 2025 01:03
@labbott
Copy link
Contributor

labbott commented Oct 2, 2025

This looks super helpful, thanks for digging into this

@labbott labbott requested review from cbiffle, hawkw and mkeeter October 2, 2025 13:03
@sdonnan sdonnan merged commit 0681e91 into master Oct 2, 2025
11 checks passed
@sdonnan sdonnan deleted the feature/set-probe-speed branch October 2, 2025 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants