ST-LINK V2 with STM32F103C8T6(Bluepill) code upload error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-27 5:20 AM
I have tried to upload a blink program to a Bluepill (STM32F103C8T6) board through ST-LINK V2 while doing so i get the error as "Target no device found Error in initializing ST-LINK device. Reason: No device found on target." and "
Failed to execute MI command:
target remote localhost:61234
Error message from debugger back end:
localhost:61234: Connection timed out.
Failed to execute MI command:
target remote localhost:61234
Error message from debugger back end:
localhost:61234: Connection timed out.
localhost:61234: Connection timed out
"
Could anyone help me out with this problem.
Solved! Go to Solution.
- Labels:
-
STM32CubeMX
-
STM32F1 Series
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-25
12:11 AM
- last edited on
‎2025-04-25
7:35 AM
by
Maxime_MARCHETT
This thread relates to a so-called Blue Pill, which uses illegally cloned STM32F103. ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products work properly with the firmware we provide.
We recommend to purchase genuine products from STMicroelectronics and purchase them from known and trusted distributors.
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.
Thank you for your understanding.
Regards
/Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-27 5:29 AM
- Blue Pill have generally only had counterfeits for years and no longer have an original STM32F103
- The same applies to ST-LINK/V2 if it is one of these tin cans
- ST software cannot work with counterfeits, partly because their behaviour is unknown.
What software are you trying to programme with?
Regards
/Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-27 5:40 AM
We are using STMcubeIDE v1.12.1(software used)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-27 5:43 AM
Please consider to install the recent version of STM32CubeIDE.
What does your ST-LINK/V2 look like?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-27 5:52 AM
These are the pics of ST-LINK V2 and Bluepill we are using
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-27 6:02 AM
I had several such modules, identical to the one in the photo. They all had a counterfeit MCU, and had the same problem with the ST-Link connection. I solved it by buying original MCUs and resoldering. Then everything worked OK.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-27 6:31 AM
This might work with the Blue Pills, but the ST-LINK/V2 in the picture of the TO also looks like a counterfeit. This can be checked if you open it and have a look. There is also an article in the knowledge base or some discussion that describes this. Unfortunately, there is no official way to turn such a fake into an ST-LINK that behaves like the original by replacing the STM32F103, because the firmware is not officially available.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-02-27 6:44 AM
@MADHESHWARAN_S wrote:"Target no device found Error in initializing ST-LINK device. Reason: No device found on target." .
So it doesn't see any STM32 Target device attached.
As the others have said, that could be because there is no genuine STM32 device on your board.
Can you successfully program any other boards with that ST-Link?
A complex system designed from scratch never works and cannot be patched up to make it work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-04-25
12:11 AM
- last edited on
‎2025-04-25
7:35 AM
by
Maxime_MARCHETT
This thread relates to a so-called Blue Pill, which uses illegally cloned STM32F103. ST resources are only dedicated to supporting genuine ST products. We are not committed to ensuring that clones/fakes products work properly with the firmware we provide.
We recommend to purchase genuine products from STMicroelectronics and purchase them from known and trusted distributors.
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.
Thank you for your understanding.
Regards
/Peter
