Skip to content

Conversation

@dbeinder
Copy link
Contributor

@dbeinder dbeinder commented Apr 17, 2025

The STLINK-V3 firmware locks up and stops responding to USB traffic when it receives a STLINK_DEBUG_EXIT command while it is not actually in STLINK_DEV_DEBUG_MODE. Since stlink_exit_debug_mode() is an exposed library function, I believe checking every time before sending the command is warranted, instead of trusting the caller to not trigger this bug.

Fixes #1399
Tested on STLINK-V3MINIE (Firmware V3J15) and STLINK-V3EC (Firmware V3J15S1)

@Nightwalker-87 Nightwalker-87 changed the title Fix STLINK-V3 lock up when no target connected Fixed STLINK-V3 lock up when no target connected Apr 17, 2025
@Nightwalker-87 Nightwalker-87 changed the title Fixed STLINK-V3 lock up when no target connected Fixed STLINK-V3 programmer lock up when no target connected Apr 17, 2025
@Nightwalker-87 Nightwalker-87 merged commit 1894b70 into stlink-org:testing Apr 17, 2025
37 of 41 checks passed
@github-project-automation github-project-automation bot moved this from In review to Done in Release v1.8.1 Apr 17, 2025
@stlink-org stlink-org locked as resolved and limited conversation to collaborators Apr 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

STLINK/V3-SET: If the device fails to enter SWD mode, the usb device is not released

2 participants