Skip to main content
Associate
May 10, 2025
Solved

STM32 ST-Link V2 Not Detected by STM32CubeProgrammer– Connection Issue

  • May 10, 2025
  • 1 reply
  • 1214 views

 

 

Hi everyone,

I'm having trouble with my ST-Link V2 programmer and STM32Cube tools. When I try to update the firmware via STM32CubeProgrammer (or STM32CubeUtility), I get the following error:

"STLink is not in DFU mode. Please restart it."

Additionally, when I try to upload code through STM32CubeIDE, it fails to connect. CubeProgrammer also gives me this error when I attempt to connect:

"Your connection is defined with the HWrst mode."

Here’s what I’ve tried so far:

  • Verified all SWD connections: SWDIO, SWCLK, GND, 3.3V

  • Tried different USB cables and USB ports

  • Tried connecting with both STM32CubeIDE and CubeProgrammer

  • Checked Device Manager: ST-Link shows up as USB device, but firmware update still fails

  • Tried to manually enter DFU mode, but unsure how with this ST-Link V2 device (it's possibly a clone)

System Info:

  • OS: Win11 Pro

  • STM32 Model: STM32F103C8T6

  • ST-Link version: V2 

I'd appreciate any suggestions on how to:

  1. Successfully update the ST-Link firmware

  2. Bypass or resolve the DFU mode issue

  3. Upload code again through STM32CubeIDE

Thanks in advance!

Lemtus_0-1746862914008.pngLemtus_1-1746862962072.png

 

This topic has been closed for replies.
Best answer by STTwo-32

Hello @Lemtus 

ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products (Such as the Bluepill or the Clone ST-Link V2 that you are using) work properly with the firmware we provide.

This thread will now be locked. However, if you face difficulties while using genuine ST products, we’re here to assist you. Please feel free to start a new thread, and our team, along with community members, will be ready to help you with any issues/questions you encounter. More details about Clone and genuine ST-LINK  V2 may be found here.

Best regards.

STTwo-32

1 reply

STTwo-32
Technical Moderator
May 10, 2025

Hello @Lemtus and welcome to the ST Community.

Could you please send a picture of your ST-Link V2 and your Board.

Best Regards.

STTwo-32

LemtusAuthor
Associate
May 10, 2025

Thank you! Glad to be here.

IMG_2725.jpeg

STTwo-32
STTwo-32Best answer
Technical Moderator
May 10, 2025

Hello @Lemtus 

ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products (Such as the Bluepill or the Clone ST-Link V2 that you are using) work properly with the firmware we provide.

This thread will now be locked. However, if you face difficulties while using genuine ST products, we’re here to assist you. Please feel free to start a new thread, and our team, along with community members, will be ready to help you with any issues/questions you encounter. More details about Clone and genuine ST-LINK  V2 may be found here.

Best regards.

STTwo-32