2025-07-15 5:33 AM
Board: ST Nucleo‑F401RE
Host OS: Windows 10/11
IDE/Tools:
STM32CubeIDE 1.14.0 (Ac6 STM32 Debugging)
STM32CubeProgrammer 2.18.0
STSW‑LINK009 (ST‑Link USB driver)
Segger STLinkReflash_190812 (J‑Link firmware utility)
STSW‑LINK007 (Official ST‑Link upgrader)
After using STLinkReflash_190812 to load J‑Link firmware onto the on‑board ST‑Link/V2‑1 chip, attempts to restore ST‑Link functionality have failed. Windows Device Manager now only shows the “ST‑Link Virtual COM Port,” and STM32CubeIDE reports:
No “STLink Debug in FS Mode” interface appears, so neither STM32CubeProgrammer nor the IDE’s debugger can connect via SWD.
Uninstalled J‑Link drivers in Device Manager (SEGGER entries).
Re‑ran STLinkReflash_190812 and selected “Restore ST‑Link.”
Reinstalled STSW‑LINK009 drivers, pointed “Have Disk…” at stsw-link009.inf.
Ran STLinkUpgrade.exe from STSW‑LINK007 to flash official firmware.
Tried different USB cables/ports and “Scan for hardware changes.”
Enabled “Connect under reset” in CubeIDE debug configuration.
Killed conflicting processes on port 61234 before launch.
All of the above steps complete without errors, yet the debugger interface never re‑appears.
Device Manager should list under “Universal Serial Bus devices”:
STMicroelectronics STLink Debug in FS Mode
STMicroelectronics STLink UART in FS Mode
STM32CubeProgrammer should connect to the STM32F401RET6 via SWD.
CubeIDE debug launch should succeed, attaching to main() over ST‑Link GDB server on port 61234.
Only “ST‑Link Virtual COM Port” appears under “Ports (COM & LPT).”
No debug interface (“STLink Debug in FS Mode”) is visible anywhere in Device Manager.
STM32CubeProgrammer reports “No ST‑Link detected.”
CubeIDE debug times out on target remote localhost:61234.
How can I fully restore the on‑board ST‑Link/V2‑1 firmware so that Windows again recognizes the SWD debug interface?
Are there any hidden USB‐VID/PID or driver conflicts that could prevent the ST‑Link from re‑enumerating?
What diagnostic steps can I take (logs, registry entries, firmware dumps) to pinpoint why the debug interface isn’t coming back?
Solved! Go to Solution.
2025-07-16 9:58 AM
The ST-Link reflash is Segger's thing - nothing to do with ST - so you should go to Segger for support on their tool:
https://forum.segger.com/board/4-j-link-flasher-related/
2025-07-16 9:58 AM
The ST-Link reflash is Segger's thing - nothing to do with ST - so you should go to Segger for support on their tool:
https://forum.segger.com/board/4-j-link-flasher-related/