0
\$\begingroup\$

I am trying to connect STM8L052C6T6 microcontroller using SWIM interface (STM8 port) on ST-Link/V2 programmer and it just doesn't connect.

enter image description here

Power comes from outside power source (target is powered) because doc says Pin1 of the programmer is just for getting voltage reference.

Could someone please point what kind of settings should be inside ST-Link Utility ?

I have tried all combinations of Mode and Reset mode, cannot figure what I am skipping?

enter image description here

\$\endgroup\$
3
  • 1
    \$\begingroup\$ I"m not familiar with the ST-LINK Utility, but it looks to me as though it's expecting to be talking to an STM32 device and is therefore only offering you JTAG or SWD options, while you need SWIM for your STM8. Do you need to configure the utility somewhere first for your STM8 micro? \$\endgroup\$
    – brhans
    Dec 26, 2018 at 1:15
  • \$\begingroup\$ Selected the wrong device \$\endgroup\$
    – MaNyYaCk
    Dec 26, 2018 at 6:09
  • \$\begingroup\$ Thanks for helping out, but following ST-Link manual, this should be it.I have used STM8 port and everything else should work. \$\endgroup\$
    – user505160
    Dec 26, 2018 at 11:26

1 Answer 1

2
\$\begingroup\$

I have found solution and want to share it with you.

So, first download STVP-STM8 from:

ST Website - STVP-STM8

Then install it and start St Visual Programmer

enter image description here

Select your programmer, in my case ST-Link, then mode (SWIMM) and your microcontroller. Application opens up and you can read/write microcontroller.

Happy hacking everyone!

\$\endgroup\$
1
  • \$\begingroup\$ Hey Dude! I just want to say a huge thank you! I was about to give up on a project because i couldn't figure out how to connect the programmer to this part :) You kept my project alive! \$\endgroup\$
    – Peter
    Aug 26 at 15:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.