STLinkV2 20-pin connector pinout in KiCad
According to the STLinkV2 user manual, this is the pinout for the 2x10 pin 2.54mm connector on the STLinkV2.
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow