2025-05-10 12:48 AM
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:
Successfully update the ST-Link firmware
Bypass or resolve the DFU mode issue
Upload code again through STM32CubeIDE
Thanks in advance!
Solved! Go to Solution.
2025-05-10 2:13 AM
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.
2025-05-10 1:13 AM
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.
2025-05-10 1:42 AM
Thank you! Glad to be here.
2025-05-10 2:13 AM
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.