cancel
Showing results for 
Search instead for 
Did you mean: 

ST-LINK/V2 to small SWD connector

po221
Senior

Hello

Familiar with Kinetis of NXP, I start with the STM32.

I am looking for the ST-LINK/V2 to program small Cortex M4, with a small connector (SWD).

ST-LINK / V2 has a 20pins cord with a 2.54 pitch. I can not find how it should be used with a small SWD connector.

Is there a standard adapter for linking a 20-pin ST-LINK / V2 to a small standard SWD connector? Is there a reference for this adapter ?

I only see DIY for that...

Thanks in advance

11 REPLIES 11
po221
Senior

I discover the STLINKv3...

https://www.st.com/content/ccc/resource/technical/document/user_manual/group1/99/49/91/b6/b2/3a/46/e5/DM00526767/files/DM00526767.pdf/jcr:content/translations/en.DM00526767.pdf

MB1441.CN1 provide SWD with 1.27mm pitch connector and a flat cable "ARM10-compatible connector" , is this the solution to my problem?

If so, how does a 10-wire flat cable connect to a 14-pin connector ?

Thanks

Uwe Bonnes
Principal II

This is a solution. However STM software only supports STM32. Otherwise you need to look at OpenOCD, pyOCD or https://github.com/UweBonnes/bl*ckm*gic/tree/stlinkv2 (*->a)

Olimex had adapters when I first started to use them, and I recall Segger offering them.​

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

https://www.olimex.com/Products/ARM/JTAG/ARM-JTAG-20-10/

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

Thanks for your answers.

I am looking for an official solution, completely integrated. In first, i am therefore not interested in openX or magicY.

But at the same time there is no official solution to connect a SWD 10 points with ST-linkV2 :(

The STlinkV2 that equips the nucleo card is it the same as that found in the ST link V2 in a box ?

It's almost easier to rip this pod than to add an adapter to ST linkV2.

Or ST link V3 as you confirm that it is a solution... how does a 10-wire flat cable connect to The 14-pin connector of The V3 board ?

It would be more serious than a STlink based on a nucleo.

Thanks

>>I am looking for an official solution, completely integrated.

It is just a wired translation, the Olimex and Segger solutions, are pretty simple. If I crack open my Keil U-Link there is a 10-pin header connector.

https://www.amazon.com/Ailavi-Standard-Interface-Spacing-Adapter/dp/B079NWPVNK

>>how does a 10-wire flat cable connect to The 14-pin connector of The V3 board ?

The V3 board comes with a number of cables, the SWD feed take the 10 centre wires, and the two outside pairs with the additional functionality don't connect. The target side end has a 10-pin connector on it.

There is a 14-to-14-pin cable also. On the target board you can populate a 10 or 14-pin connector.

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

SWD means 4 wires, GND, VDD, SWD and SWDIO, wire jumperable.

po221
Senior

Okok

so I can either use :

>ST-Link V3 with standard 10-wire flat cable (and standard 10-pin SWD connector)

>ST-Link V3 with 14-wire flat cable, taking advantage of the integrated VCP

>STlink V2, V3 or any other JTAG prob with a standard 10-pin SWD adaptator (olimex for exemple)

>STlink V2, V3 or any other with a home connector just taking the pins of the SWD (STlinkV3 if I want VCP feature)

I'm right ?

Thanks

S.Ma
Principal

The 14 wire cable will get you the USB VCOM port included (non generic, that's where for example the printf() are routed like a console during debug.

There is TAGCONNECT adapter for high volute programming: no connector on the target PCB (cheap), using POGO contacts only Of course cable is more xpensive....

Shouldn't take much time to find JTAG adapters on Amazon or Aliaba stores if the need is quite generic.