cancel
Showing results for 
Search instead for 
Did you mean: 

Is SWCLK required for SWD ?

JSchn.5
Associate III

The four wire interface from the ST-LINK V2 has no clock.

Where does it say that ST devices do not require a clock for SWD ?

Also why is it seemingly impossible to work through a hub ? This makes life very difficult.

This discussion is locked. Please start a new topic to ask your question.
1 ACCEPTED SOLUTION

Accepted Solutions
S.Ma
Principal

ST link V2 4 pin connector is for STM8 SWIM single wire interface. Focus on the 20 pin connector.

View solution in original post

3 REPLIES 3
S.Ma
Principal

SWD = Arm Serial Wire Debug.

Minimal wirering is monodir clock from debug probe to target chip, swdio is a bi directional signal. Ground is of course needed. In low power mode, sometime the core needs a reset pulse which the debug probe optionally provide.

S.Ma
Principal

ST link V2 4 pin connector is for STM8 SWIM single wire interface. Focus on the 20 pin connector.

Indeed, the 4-pin connector is marked "STM8", and the 20-pin is marked "STM32" on the unit itself, and this is CLEARLY documented in the User Manual:

0693W00000NpDmWQAV.png 

 https://www.st.com/en/development-tools/st-link-v2.html#documentation

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.