Skip to main content
jean_bonneau
Associate II
January 29, 2026
Question

Could not verify ST device when attempting to debug

  • January 29, 2026
  • 2 replies
  • 404 views

SOMETIMES (not always), when i try to debug (and only when i try to debug, run does its job well) with STM32CubeIDE my Riverdi board, i encounter the "Could not verify ST device! Please verify that the last version of the GDB-server is used for the connection" error. It happens right after

Loading RTOS driver... ThreadX

Connecting to GDB server 127.0.0.1 on port 61234 ... Connected

Listen for GDB connection on port: 60000 ... Connected

.if this helps.
Downloading code with run is always fine, and sometimes the debug option works, but not always. It is really annoying to rely on luck to make the *** thing work. I tried unplug-replug. The board is definitly not counterfeited, same goes for the ST-Link. 

2 replies

mƎALLEm
Technical Moderator
January 29, 2026

Hello,

What STLINK device are you using? a genuine ST link? it could be a counterfeit ..

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

"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."
jean_bonneau
Associate II
January 29, 2026

It looks like a geniune ST-Link/V2

mƎALLEm
Technical Moderator
January 29, 2026

Could you please share real pictures of your ST-LINK?

"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
January 29, 2026
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.