stlinkserver.exe failing/exiting silently on Windows 11 (CubeProgrammer works fine)
Hi everyone,
I'm facing a really frustrating issue where my STM32CubeIDE can no longer detect my ST-LINK, and I've narrowed the problem down specifically to stlinkserver.exe failing to launch. This problem appeared completely randomly on my PC.
Here are the symptoms and what I have already ruled out:
The Problem: When I try to manually execute stlinkserver.exe via PowerShell to see what's wrong, it exits instantly without printing any output, errors, or logs. Even forcing the help menu or debug mode does absolutely nothing:
PS C:\Program Files (x86)\STMicroelectronics\stlink_server> .\stlinkserver.exe PS C:\Program Files (x86)\STMicroelectronics\stlink_server> .\stlinkserver.exe -d 5 PS C:\Program Files (x86)\STMicroelectronics\stlink_server> .\stlinkserver.exe -h
Running Get-Process stlinkserver confirms the process is not running in the background at all. It just dies immediately upon execution.
What DOES work (Hardware & Drivers are fine):
STM32CubeProgrammer works perfectly. It detects the ST-LINK and flashes the board without any issues.
The board and ST-LINK work perfectly fine on another PC, so the hardware is not broken.
My USB drivers are definitely fine and up to date (STSW-LINK009), confirmed by Device Manager and CubeProgrammer working.
What I have already tried:
Reinstalling ST-LINK Server and STM32CubeIDE completely.
Running PowerShell/IDE as Administrator.
Replacing the libusb-1.0.dll file in the stlinkserver.exe folder with latest version and other older version but still same issue.
My System:
Windows 11 (64-bit)
Has anyone experienced this specific silent crashing behavior with stlinkserver.exe? Are there any hidden dependencies (like specific C++ redistributables) or registry keys I should check? Any help would be greatly appreciated, as I am currently stuck!
Thanks in advance.

