2025-12-08 2:50 AM - edited 2025-12-08 2:52 AM
Hi!
I'm having trouble connecting to an STLINK ISOL via STM32CubeProgrammer. The STLINK is authentic, I purchased it from digikey.
The programmer is detected under Device Manager. The programmer's LED remains static red at all times.
Sometimes STM32CubeProgrammer detects an STLINK device, but when I click connect it gives
10:40:01 : STM32CubeProgrammer API v2.21.0 | Windows-64Bits
10:40:09 : UR connection mode is defined with the HWrst reset mode
10:40:14 : ST-LINK error (DEV_USB_COMM_ERR)
10:40:14 : Error: Problem occured while trying to connect
Changing to software reset
10:41:23 : UR connection mode is defined with the SWrst reset mode
10:41:28 : ST-LINK error (DEV_USB_COMM_ERR)
10:41:28 : Error: Problem occured while trying to connect
And then, when I click refresh interfaces the STLINK interface disappears.
Disconnecting from USB and reconnecting, when I try to update firmware and open device in update mode it gives
Error connecting to device ST-LINK/V2 (error 0x21); check the USB connection and refresh the device list
The firmware version is: V2J29S7
Solved! Go to Solution.
2025-12-09 11:33 PM
I connected my STLINK/V2 to another desktop running Ubuntu 24.04, running STM32CubeProgrammer as unprivileged user it doesn't list any STLINK device and outputs an error CONN_ERR, but after running STM32CubeProgrammer as root it effectively detects the STLINK without any issues. I tried upgrading firmware but it requires that the STLINK be in DFU mode.
I could be wrong, but this seems like an issue with Windows blocking something.
2025-12-12 9:35 PM
Okay, I fixed my own problem. After updating the firmware with this utility in Windows the STLINK is now detectable and reads target voltage
https://www.st.com/en/development-tools/stsw-link007.html