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-07 7:53 AM - edited 2025-10-07 7:57 AM
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
2025-10-07 8:37 AM
Connect SWD pins to programmer.
Ensure board is powered.
Hit debug.
2025-10-07 9:38 AM
@TDK wrote:Connect SWD pins to programmer.
Not forgetting Vtarget and GND.
@HMSEdinburge Also connecting NRST is highly recommended.
2025-10-08 7:16 AM
Hi Dude, its genuine STLink V2, cost $40++
2025-10-08 7:39 AM
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.
2025-10-08 8:18 AM
@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.
2025-10-08 8:34 AM
> Reason: ST-LINK: Could not verify ST device! Abort connection.
This typically happens with non-genuine devices.
See if it works with the standalone STM32CubeProgrammer.
2025-10-09 5:30 AM
yes it works on STM32Cube Programmer, i can download code on the board
2025-10-09 5:34 AM
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!