Skip to main content
Visitor II
May 26, 2019
Solved

ST-LINK V2 error: can not connect to target

  • May 26, 2019
  • 2 replies
  • 3245 views

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 ;)

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

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

    2 replies

    Graduate II
    May 26, 2019

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

    astariaAuthor
    Visitor II
    May 26, 2019

    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!

    Visitor II
    May 26, 2019

    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.