How to Fix ST-Link Driver Problems on Windows
In this article
The fastest fix is to install ST's official driver package (STSW-LINK009) and then point Windows at the correct driver manually through Device Manager if the automatic install fails. ST-Link driver problems on Windows almost always come from one of three things: the driver never installed, Windows picked a generic USB driver instead, or a previous driver version is still bound to the device. Work through the steps below in order and you will usually have the programmer recognised in Device Manager and in your IDE within a few minutes.
What You'll Need
- A Windows PC (Windows 10 or 11 is assumed here; the same Device Manager paths exist on Windows 8.1 and 7 with slightly different wording).
- Your ST-Link programmer or a development board with an onboard ST-Link (Nucleo, Discovery, and similar).
- A known-good USB cable — data-capable, not a charge-only cable.
- The official ST-Link driver package from ST's website (search for STSW-LINK009) or the STM32CubeProgrammer installer, which bundles the driver.
- Administrator rights on the PC, since driver installation prompts for elevation.
Step-by-Step
- Confirm the hardware is seen at all. Plug the ST-Link into a USB port directly on the PC (not through an unpowered hub). Open Device Manager (right-click Start > Device Manager). Look under Universal Serial Bus devices for an entry containing “ST-Link”, or under Other devices for an unknown device with a yellow warning triangle. If nothing appears anywhere, the problem is the cable or port, not the driver — try another cable and another port before continuing.
- Uninstall any old driver binding. In Device Manager, right-click the ST-Link entry (or the unknown device) and choose Uninstall device. If a checkbox appears asking to delete the driver software, tick it. Disconnect the programmer afterwards.
- Install the official driver package. Download STSW-LINK009 from ST's website and run the installer as administrator. Accept the default location. When it finishes, reconnect the ST-Link. Windows should now show it under Universal Serial Bus devices without a warning icon.
- If Windows still shows a warning icon, bind the driver manually. Right-click the device > Update driver > Browse my computer for drivers > Let me pick from a list of available drivers on my computer. Choose the STMicroelectronics entry (it may be labelled “STLinkUSBDriver” or similar) and click Next. If the entry is missing, click Have Disk, browse to the driver folder inside the STSW-LINK009 install directory, and select the included .inf file.
- Check for a driver conflict with other debug tools. If you have installed J-Link, CMSIS-DAP or vendor-specific debug drivers, they can claim the same USB IDs. In Device Manager, open View > Show hidden devices and look for duplicate or ghost ST-Link entries; uninstall the ghosts, then replug the programmer.
- Verify in your toolchain. Open STM32CubeProgrammer (or your IDE's programmer settings) and connect. The ST-Link should appear in the programmer list and report its firmware version. If it connects here but not in your IDE, the problem is the IDE's debug configuration, not the driver.
- Update the ST-Link firmware if prompted. STM32CubeProgrammer offers a firmware upgrade for the on-board ST-Link when one is available. Run it only while the programmer is connected directly to the PC, and do not unplug during the update. A failed firmware update can leave the probe unusable until it is recovered with the same tool.
Common Mistakes
- Using a charge-only USB cable. The single most common cause of “driver won't install” is a cable with no data lines. Swap cables before touching drivers.
- Installing the driver while the device is unplugged, then never replugging. Windows binds the driver at plug-in; reconnect after installation.
- Letting Windows Update choose the driver. Windows may install a generic USB device driver that looks fine but does not expose the ST-Link interface. Manually selecting the STMicroelectronics driver fixes this.
- Running the installer without administrator rights. The driver files land in the wrong place and Device Manager cannot find them later.
- Assuming a board fault. If Device Manager never shows the device, check the board's power and the USB port before concluding the ST-Link is dead.
Tips
- Keep the STSW-LINK009 installer on hand — reinstalling it is faster than hunting through Device Manager.
- Use a rear USB port on a desktop PC; front-panel ports and hubs are more prone to enumeration failures.
- After any driver change, unplug and replug the programmer so Windows re-reads the descriptors.
- If you use multiple debug probes, label them and check Device Manager after each swap so you know which driver bound to which device.
Troubleshooting
If the steps above did not work, try these in order, simplest first:
- Restart the PC. A pending driver update or a stuck USB stack is cleared by a reboot more often than people expect.
- Try a different USB port and cable. Test the same cable and programmer on another PC if possible — that isolates whether the fault is the probe or the machine.
- Disable USB selective suspend temporarily. In Power Options, open the active plan's advanced settings and set USB selective suspend to Disabled. This prevents Windows from powering down the port mid-session.
- Reinstall the driver package cleanly. Uninstall STSW-LINK009 from Programs and Features, uninstall the device in Device Manager with “delete driver software” ticked, reboot, then reinstall.
- Check for security software interference. Some endpoint protection blocks unsigned or newly installed USB drivers. Temporarily disabling it during installation (with your IT policy's permission) can confirm this.
- Test with STM32CubeProgrammer alone. If it connects but your IDE does not, the driver is fine — fix the IDE's debugger settings instead of reinstalling drivers again.
Frequently Asked Questions
Do I need the ST-Link driver if I use STM32CubeIDE?
Yes. The IDE uses the same ST-Link USB driver; installing STSW-LINK009 or the STM32CubeProgrammer package provides it.
Why does Device Manager show my ST-Link as an unknown device?
Windows found the hardware but no matching driver. Install STSW-LINK009, then manually point the device at the STMicroelectronics driver via Update driver.
Can I use a generic USB driver instead?
No. The ST-Link needs its own driver to expose the debug interface; a generic USB driver will enumerate the device but programming tools will not connect.
Will reinstalling the driver erase my project or firmware?
No. Driver installation only affects the PC. Your project files and the target microcontroller's firmware are untouched.
What if the ST-Link works on one PC but not another?
The working PC has the correct driver bound. Compare Device Manager entries on both machines and replicate the driver selection on the failing one.
Does the driver work on Windows 11?
Yes. The official ST-Link driver package supports current Windows versions; the Device Manager steps are the same, though labels can differ slightly by version.