Skip to main content
Graduate
February 27, 2024
Solved

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

  • February 27, 2024
  • 4 replies
  • 8299 views

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 topic has been closed for replies.
    Best answer by Peter BENSCH

    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

    4 replies

    Technical Moderator
    February 27, 2024
    • 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

    Graduate
    February 27, 2024

    We are using STMcubeIDE v1.12.1(software used)

     

    Technical Moderator
    February 27, 2024

    Please consider to install the recent version of STM32CubeIDE.

    What does your ST-LINK/V2 look like?

    Graduate
    February 27, 2024

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

    Graduate
    February 27, 2024

    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.

    Super User
    February 27, 2024

    @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?

     

    Technical Moderator
    April 25, 2025

    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