cancel
Showing results for 
Search instead for 
Did you mean: 

How to setup STM32CubdeIDE using ST Link V2 Debugger

HMSEdinburge
Associate II
3 REPLIES 3
Andrew Neil
Super User

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.
TDK
Super User

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".

@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.