cancel
Showing results for 
Search instead for 
Did you mean: 

ST-LINK V2 with STM32F103C8T6(Bluepill) code upload error

MADHESHWARAN_S
Associate II

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.

This discussion is locked. Please start a new topic to ask your question.
1 ACCEPTED SOLUTION

Accepted Solutions
Peter BENSCH
ST Employee

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

In order 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

8 REPLIES 8
Peter BENSCH
ST Employee
  • 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

In order 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.

We are using STMcubeIDE v1.12.1(software used)

 

Peter BENSCH
ST Employee

Please consider to install the recent version of STM32CubeIDE.

What does your ST-LINK/V2 look like?

In order 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.

These are the pics of ST-LINK V2 and Bluepill we are using

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.

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.

 

In order 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.

@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 that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
Peter BENSCH
ST Employee

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

In order 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.