Skip to content

Report probe-found-but-target-unreachable for STLink#391

Merged
BrianPugh merged 1 commit into
mainfrom
connection-error-message
Jun 17, 2026
Merged

Report probe-found-but-target-unreachable for STLink#391
BrianPugh merged 1 commit into
mainfrom
connection-error-message

Conversation

@BrianPugh

Copy link
Copy Markdown
Owner

The probe-detection heuristic in _launch_openocd only recognized the "Interface ready" marker, emitted by the DAP (SWD/JTAG) transports. STLink uses the hla transport, which never prints it — so a successfully-detected STLink that failed at the target-connection step (e.g. "init mode failed (unable to connect to the target)") fell through to the misleading "Unable to autodetect & connect to debugging probe" message.

Treat "Target voltage", "init mode failed", and "unable to connect to the target" as additional probe-found markers so these cases report accurately, and correct the power-button hint to release (not hold) the button while connecting. Fixes #390.

The probe-detection heuristic in _launch_openocd only recognized the
"Interface ready" marker, emitted by the DAP (SWD/JTAG) transports. STLink
uses the hla transport, which never prints it — so a successfully-detected
STLink that failed at the target-connection step (e.g. "init mode failed
(unable to connect to the target)") fell through to the misleading
"Unable to autodetect & connect to debugging probe" message.

Treat "Target voltage", "init mode failed", and "unable to connect to the
target" as additional probe-found markers so these cases report accurately,
and correct the power-button hint to release (not hold) the button while
connecting. Fixes #390.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@BrianPugh BrianPugh merged commit ae8a842 into main Jun 17, 2026
7 checks passed
@BrianPugh BrianPugh deleted the connection-error-message branch June 17, 2026 12:20
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.

Unable to perform gnwmanager unlock

1 participant