cancel
Showing results for 
Search instead for 
Did you mean: 

ST-LINK V2 error: can not connect to target

astaria
Associate II

Hi everyone!

I'm new to embedded and that's my first board - STM32F103C8T6. I'm trying to program it using ST-LINK V2, but getting error "can not connect to target" all the time. I've tried to done that on two different PC with Windows 7, but result remain the same.

I've changed modes and reset board several times, as it said in error messages, but it didn't helped either.

Board - STM32F103C8T6

Utility is STM32 ST-LINK Utility v4.4.0

Driver is STSW-LINK009

There are some screenshots and photo of hardware attached

0690X000008wPVVQA2.jpg

0690X000008wPVaQAM.jpg

0690X000008wPVfQAM.jpg

0690X000008wPVkQAM.jpg

Waiting for your advice a lot ;)

1 ACCEPTED SOLUTION

Accepted Solutions

Suggests the board isn't powered properly. Perhaps review pin assignments on fake ST-LINK, check supplies on blue board side.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

3 REPLIES 3

Suggests the board isn't powered properly. Perhaps review pin assignments on fake ST-LINK, check supplies on blue board side.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
T J
Lead

I use the top part of a nucleo board to program and single step through all my boards.

and that uses a 5 or 6 wire cable.

Actually, that solved my problem! I connected my board to programmer from one side and to PC through micro usb as power supply at the same time. Then everything started to work fine.

Thanks a lot!