cancel
Showing results for 
Search instead for 
Did you mean: 

How to setup STM32CubdeIDE using ST Link V2 Debugger

HMSEdinburge
Associate II
25 REPLIES 25

All signs point to it being a counterfeit programmer then. It won't work with STM32CubeIDE. Consider finding a genuine one, if you can.

If you feel a post has answered your question, please click "Accept as Solution".

why you say the STLink V2 is counterfeit? i bought it at $40++ 

  1. Because it came from Amazon;
  2. Because the symptoms you report are typical of fakes.

Have you actually followed the instructions on how to check?

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.

@HMSEdinburge wrote:

 i tried the STMCude Programmer, it works perfectly.


So you can program on CubeProgrammer, but can't program or debug in CubeIDE ?

In that case, post the full logs from CubeIDE (copy & paste as text); also screenshots of any message(s) that pop up.

 


@HMSEdinburge wrote:

I m pretty sure the STlink V2 is a genuine from STM! 


Again, here is how you can check for sure:

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

What Serial Number does CubeProgrammer report for the ST-Link?

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.

Yes all followed. 

OMG, you mean Amazon sell fake products? 

hi Andrew, yes can download on both STMCube Programmer and ST Link Utility but cant debug, error as below

HMSEdinburge_0-1760021546339.png

 

mfgkw
Senior

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.

this too..

HMSEdinburge_1-1760021975832.png

 

Likely a fake/clone MCU - not a genuine STM32.

Try the diagnostic tool here:

https://community.st.com/t5/stm32-mcus-products/blue-pill-stm32f1-programs-ok-via-arduino-ide-but-not-keil-chip/m-p/667946/highlight/true#M242513

 

PS:

Note that you get the same behaviour with Keil:

https://community.st.com/t5/stm32-mcus-products/blue-pill-stm32f1-programs-ok-via-arduino-ide-but-not-keil-chip/m-p/667946

I guess, when it comes to debugging, it's more important to fully identify the chip than just for programming?

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.

HMSEdinburge_2-1760022217912.png