Skip to main content
cwalk.2
Associate
June 21, 2022
Solved

I have STM8L-discovery with SWIM USB link cable that has 4 connector wires (Red,Black, White & Green). Which SWIM pins do I connect the different colour wires to?

  • June 21, 2022
  • 1 reply
  • 3069 views

..

    This topic has been closed for replies.
    Best answer by Peter BENSCH

    Well, the adapter cable shown has nothing to do with SWIM, but is a USB to TTL Serial Cable - Debug/Console Cable.

    The STM8L-DISCOVERY doesn't need any special cables, just a mini-USB cable that plugs directly into the mini-USB jack at the top of the STM8L-DISCOVERY. You'd only need a debugger with SWIM if you want to connect it directly to the STM8 (the target MCU), but the STM8L-DISCOVERY already has the debugger ST-Link for that (on the picture above the display).

    Does it answer your question?

    Regards

    /Peter

    1 reply

    Peter BENSCH
    Peter BENSCHBest answer
    Technical Moderator
    June 21, 2022

    Well, the adapter cable shown has nothing to do with SWIM, but is a USB to TTL Serial Cable - Debug/Console Cable.

    The STM8L-DISCOVERY doesn't need any special cables, just a mini-USB cable that plugs directly into the mini-USB jack at the top of the STM8L-DISCOVERY. You'd only need a debugger with SWIM if you want to connect it directly to the STM8 (the target MCU), but the STM8L-DISCOVERY already has the debugger ST-Link for that (on the picture above the display).

    Does it answer your question?

    Regards

    /Peter

    In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
    cwalk.2
    cwalk.2Author
    Associate
    June 21, 2022

    Many thanks Peter you have greatly assisted my understanding.

    All the best

    Chris

    Peter BENSCH
    Technical Moderator
    June 22, 2022

    Great!

    If the problem is resolved, please mark this topic as answered by selecting Select as best. This will help other users find that answer faster.

    Regards

    /Peter

    In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.