2025-10-07 7:45 AM
Hi there,
Could anyone advise how to setup STM32CudeIDE to debug my custom board using ST Link V2 ?
2025-10-09 6:16 AM
All signs point to it being a counterfeit programmer then. It won't work with STM32CubeIDE. Consider finding a genuine one, if you can.
2025-10-09 6:29 AM
why you say the STLink V2 is counterfeit? i bought it at $40++
2025-10-09 7:07 AM
Have you actually followed the instructions on how to check?
2025-10-09 7:12 AM
@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?
2025-10-09 7:49 AM
Yes all followed.
OMG, you mean Amazon sell fake products?
2025-10-09 7:52 AM
hi Andrew, yes can download on both STMCube Programmer and ST Link Utility but cant debug, error as below
2025-10-09 7:58 AM - edited 2025-10-09 7:59 AM
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.
2025-10-09 7:59 AM
this too..
2025-10-09 8:03 AM - edited 2025-10-09 8:05 AM
Likely a fake/clone MCU - not a genuine STM32.
Try the diagnostic tool here:
PS:
Note that you get the same behaviour with Keil:
I guess, when it comes to debugging, it's more important to fully identify the chip than just for programming?
2025-10-09 8:03 AM