Skip to main content
Visitor II
December 27, 2019
Solved

How to connect STM8L050j3M3 and ST-LINK/V2

  • December 27, 2019
  • 1 reply
  • 714 views

hello,

i'm studying the STM8L050j3M3.

but i don't understand how to connect STM8L050j3M3 and ST link.​

it don't have Reset pin.

and i don't be going to buy discovery board because i use 1 LED and Timer.

i'd like to make connection mentioned above.

could you help this ​situation?

STM8L050J3M3 -

pin1 : SWIM

pin3 : VSS

pin4 : VDD

Thank you.

Best regards.

    This topic has been closed for replies.
    Best answer by Philipp Krause

    SWIM will work without reset, as long as you don't use the SWIM pin for anything else.

    If you need pin 1 for something other than SWIM, put a time delay into your software before using pin 1; that way, for a few second after boot, you can still connect to the device using SWIM. If you switch pin 1 into output mode immediately at boot, you've effectively disabled SWIM permanently (I lost a STM8S001 or two that way when I first got my hands on them).

    1 reply

    Visitor II
    December 28, 2019

    SWIM will work without reset, as long as you don't use the SWIM pin for anything else.

    If you need pin 1 for something other than SWIM, put a time delay into your software before using pin 1; that way, for a few second after boot, you can still connect to the device using SWIM. If you switch pin 1 into output mode immediately at boot, you've effectively disabled SWIM permanently (I lost a STM8S001 or two that way when I first got my hands on them).