Skip to main content
JSchn.5
Associate II
May 4, 2022
Solved

Is SWCLK required for SWD ?

  • May 4, 2022
  • 2 replies
  • 2109 views

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 topic has been closed for replies.
Best answer by S.Ma

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

2 replies

S.Ma
Principal
May 4, 2022

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
S.MaBest answer
Principal
May 4, 2022

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

Andrew Neil
Super User
May 4, 2022

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.