Skip to main content
Associate III
Oct 7, 2025 2:45 PM UTC
Question

How to setup STM32CubdeIDE using ST Link V2 Debugger

This topic has been closed for replies.

25 replies

Andrew Neil
Super User
Oct 7, 2025 2:53 PM UTC

That's almost certainly going to be a fake ST-Link:

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

 

Do yourself a favour, and get a genuine ST-Link...

 

You can read how to set up an ST-Link in CubeIDE:

https://www.st.com/en/development-tools/stm32cubeide.html#documentation

https://wiki.st.com/stm32mcu/wiki/STM32CubeIDE:Introduction_to_STM32CubeIDE

 

And watch videos on ST's YouTube Channel:

https://www.youtube.com/channel/UCjnmZw3h4XnpK3e5D2jvIGA 

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.
Associate III
Oct 8, 2025 2:16 PM UTC

Hi Dude, its genuine STLink V2, cost $40++ 

TDK
Oct 7, 2025 3:37 PM UTC

Connect SWD pins to programmer.

Ensure board is powered.

Hit debug.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Andrew Neil
Super User
Oct 7, 2025 4:38 PM UTC

@TDK wrote:

Connect SWD pins to programmer.


Not forgetting Vtarget and GND.

@HMSEdinburge  Also connecting NRST is highly recommended.

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.
Associate III
Oct 8, 2025 2:39 PM UTC

Hi All, can the ST Link V2 be used for debugging? I m keep getting these errors on STM32CudeIDE, although i can use STLink Utility to download the code?

 

Error in initializing ST-LINK device.

Reason: ST-LINK: Could not verify ST device! Abort connection.

Andrew Neil
Super User
Oct 8, 2025 3:18 PM UTC

@HMSEdinburge wrote:

Hi All, can the ST Link V2 be used for debugging?.


Of course it can - that's its key function!

 


@HMSEdinburge wrote:

 i can use STLink Utility to download the code.


The ST-Link Utility is long obsolete - STM32CubeProgrammer is the replacement.

You haven't said what STM32 chip you're using - the Obsolete Utility won't support recent chips.

A fake/clone ST-Link could also cause problems.

Again, see: How to recognize a genuine ST-LINK/V2 versus a cloned one.

 

See also:

How to solve connection errors when connecting and programming the STM32 target board.

How to solve debugger connection issues.

 

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.
Associate III
Oct 9, 2025 12:34 PM UTC

hi Andrew, i tried the STMCude Programmer, it works perfectly... board is a blue pill, STM32F103,  guess it must be a Chinese clone... 

I happen to have the H753 Nucleo and H750 DISCO board, could you advise how to test the STLink V2 on these 2 boards? I m pretty sure the STlink V2 is a genuine from STM! 

Associate II
Oct 9, 2025 2:58 PM UTC

Amazon does not sell this, but is only a platform.

The dealer is something called Tetoo store with no real information and no feedback visible.
Only the price looks like a genuine product here :)

In the past I had some fake blue pills and fake ST-Link/v2 mini sold via amazon. None of them really worked as expected.

On the other side there are also genuine products. But I prefer buying at more trustworthy places. An St-Link is not expensive enough to risc troubles.