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\$
  • 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 '18 at 1:15
  • \$\begingroup\$ Selected the wrong device \$\endgroup\$ – MaNyYaCk Dec 26 '18 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 '18 at 11:26
1
\$\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\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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