Skip to main content
Visitor
August 10, 2026
Question

ST-LINK V2 Detected but Cannot Connect to STM32F103 in CubeIDE or CubeProgrammer

  • August 10, 2026
  • 4 replies
  • 78 views

Hello,

I am having a problem connecting to an STM32F103C8T6 (Blue Pill) using an ST-LINK V2.

The interesting thing is that this exact ST-LINK programmer was working correctly with both STM32CubeIDE and STM32CubeProgrammer before. I was able to program and debug the STM32 without any problems.

Now, STM32CubeIDE gives me the following error when I try to start debugging:

 
Failed to execute MI command:
target remote localhost:61234

cannot resolve name: The specified class was not found.

I checked the Debug Configuration in CubeIDE, and the settings are:

  • Debug probe: ST-LINK (ST-LINK GDB Server)
  • Interface: SWD
  • Host: localhost
  • Port: 61234
  • Frequency: Auto
  • Access Port: Cortex-M3
  • Autostart local GDB server: Enabled

CubeIDE can detect the ST-LINK during the Scan operation, and it shows its serial number. However, when I try to debug, it says that no ST-LINK with that serial number can be found.

I also installed STM32CubeProgrammer to test the connection independently. However, CubeProgrammer is also unable to connect to the STM32.

I tried different connection/reset modes, including:

  • Normal + Software reset
  • Under Reset + Hardware reset

but I still cannot connect to the MCU.

The ST-LINK is detected by the computer, but I cannot establish a connection with the STM32F103.

What could be causing this problem, and what should I check next?

Thank you.

4 replies

Andrew Neil
Super User
August 10, 2026

connecting to an STM32F103C8T6 (Blue Pill) 

Note that the Blue Pill is not an ST product, and most likely does not have a genuine STM32.

ST tools are not guaranteed to work with fake/clone STM32s.

 

using an ST-LINK V2

Is it a genuine ST-Link?

In particular, see this post.

 

what should I check next?

Save yourself a load of grief, and get a genuine ST board with a genuine STM32 and genuine ST-Link; eg, 

NUCLEO-F103RB

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.
Visitor
August 11, 2026
Thank you for your guidance.🌹
Maxime_MARCHETTO1
ST Community Manager
August 11, 2026

Hello ​@MOHAMMAD113 ,   

The product you are using is a clone of a genuine ST product. 

To get the support you need, please contact the third party you purchased this product from.  

For assurance of buying authentic ST products, we recommend purchasing exclusively through our official distributors, which you can find listed here: ST Official Distributors.  

Best regards,  
Maxime

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. 
Visitor
August 11, 2026

Thank you for your guidance.🌹