Skip to main content
Visitor II
March 26, 2019
Solved

I developed a board with STM8S003F3 (20 pin) controller on it. I'm trying to connect the board via SWIM but i'm not able to. I'm seeking help to connect my own developed board via SWIM using STM8S Development Kit's programmer.

  • March 26, 2019
  • 3 replies
  • 1394 views

**To confirm connections, I did SWIM on STM8SDiscoveryKit and STM8S103FP6 breakout board & it worked well.

My board connections are as follows (STM8S Development Kit's Programmer ---> STM8S003F3):

VDD -> pin 9

SWIM -> pin 18

GND -> pin 7 (GND)

NRST -> pin 4

NOTE:

  1. I've connected 1uF tantalum polarized capacitors across pin 7 and pin 8(Vss & Vcap)
  2. 0.1uf across pin 4 and pin 7 (NRST & Vss)
  3. 1uf tantalum polarized capacitors across pin 7 and pin 9 (Vss & Vdd)

** Attachments below shows the error i get while trying SWIM interface on STVD & STVP.

    This topic has been closed for replies.
    Best answer by NikhilAG

    Thank you for the reply , I've found the issue apparently ; I replaced my on board controller IC and it worked with same connection as i mentioned in my question.

    3 replies

    Visitor II
    March 31, 2019

    Hi Nikhil!

    If you want help, post some more info: schematics (is the SWIM pin free or something connected to it?), is the MCU not already programmed with pin RESET disabled?

    Did you not plug the SWIM cable reversed? Are the jumpers ok set on your Discovery board?

    Check all this and it will surely work!

    Visitor II
    March 31, 2019

    Your MCU oscillator must be up and clocking to be able to go to SWIM mode

    NikhilAGAuthorAnswer
    Visitor II
    April 8, 2019

    Thank you for the reply , I've found the issue apparently ; I replaced my on board controller IC and it worked with same connection as i mentioned in my question.