cancel
Showing results for 
Search instead for 
Did you mean: 

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

Lemtus
Visitor

 

 

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 discussion is locked. Please start a new topic to ask your question.
1 ACCEPTED SOLUTION

Accepted Solutions

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3
STTwo-32
ST Employee

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Thank you! Glad to be here.

IMG_2725.jpeg

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

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.