cancel
Showing results for 
Search instead for 
Did you mean: 

ST-Link can't connect in VSCode using ST-Link GDB server; but OK in Keil

Austin_Jia
Visitor

屏幕截图 2026-05-27 204853.png

2 REPLIES 2
LaurentL
ST Employee

Hello,

In the debug console text, can you check that the STLINK Firmware is not outdated and needs to be upgraded.

Or check if you see any error message.

Rgds,

Laurent

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.
Andrew Neil
Super User

Welcome to the forum

Please see How to write your question to maximize your chances to find a solution for best results.

In particular:

  • What STM32 device are you using?
  • What board?
  • What ST-Link?

Note that both a clone STM32 and a clone ST-Link could cause this type of thing - see:

Blue pill (STM32F1) programs OK via Arduino IDE but not Keil. Chip ID:0x2BA01477

How to recognize a genuine ST-LINK/V2 versus a cloned one

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.