Skip to main content
Yshep
Associate
June 20, 2019
Question

what it the pin number of ST-Link V2? st link was damaged?

i connected st link to my stm32 on customboard ,

1 pin -> 3.3V, 7 pin -> SWDIO, 9 pin -> SWCLK, 15 pin-> NRST, 19 pin -> GND.

but keil doesn't recognize mcu.

I attach the image of the connection .

st link was damaged or wrong pin configuration?

thank you. i want to resolve this issue.

Thank you in advance

This topic has been closed for replies.

8 replies

S.Ma
Principal
June 20, 2019

You don t need rst.

3.3v is adc monitoring input for stlink, not a supply to the target .micro.

Did you check pin1 of stm32 on your board? Which stm32?

Yshep
YshepAuthor
Associate
June 20, 2019

Thank you for your reply, Yes, the pin1 of stm32 is 3.3V.

this board has power supply from batteries on bottom side.

I will attach schematic.

Tesla DeLorean
Guru
June 20, 2019

Strikes me that you have the pin orientation completely backward.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Yshep
YshepAuthor
Associate
June 21, 2019

I measured the voltage of pins. it appears vcc is 3.28 v. so i think i connected correctly.

Tesla DeLorean
Guru
June 21, 2019

Ok then perhaps you can enumerate your colour scheme, because the RED wire in the ribbon cable is PIN1, and the connector is a mirror image of the pins in the ST-LINK header it plugs into.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Yshep
YshepAuthor
Associate
June 21, 2019

Yes, pin1 of cable is connected to pin of custom board.

Tesla DeLorean
Guru
June 21, 2019

Perhaps a diagram might help penetrate your cranium?

0690X000008j2a2QAA.jpg

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Yshep
YshepAuthor
Associate
June 21, 2019

yes, thank you for your help . it seems it works now.

I see " Target has been cancelled "