Skip to main content
de Vaal.Ruud
Associate III
October 30, 2018
Question

SWIM example code or libraries which implements the SWIM protocol.

  • October 30, 2018
  • 3 replies
  • 2072 views

As most Discovery boards for STM8 devices use an STM32 to implement the SWIM interface. ST must have examples or libraries available to implement this SWIM interface. Are these available to the public ? Such STM32 code will speed up development of gang programmers etc. for STM8 related products.

    This topic has been closed for replies.

    3 replies

    AvaTar
    Senior III
    October 31, 2018

    Pretty sure you need to approach ST directly.

    There had been a few requests for using SWD (for Cortex M) here, but ST doesn't publish the source.

    See the STM32 on the STM8 Discovery boards as a black box with proprietary firmware owned by ST.

    waclawek.jan
    Super User
    October 31, 2018

    The SWIM protocol is publicly documented and there are implementations out there.

    https://github.com/dimitarm1/SWIM_Programmer (and link therein)

    https://github.com/rumpeltux/esp-stlink

    http://kuku.eu.org/?projects/stm8spi/stm8spi

    JW

    de Vaal.Ruud
    Associate III
    October 31, 2018

    Thanks JW, at least that could be a start. One thing that worries me is the line: This project is dead from the beginning. So I will have to try if it works. Did anyone test this if it works ?

    AvaTar
    Senior III
    October 31, 2018

    You might ask in the STM8 forum.

    The STM8 family (and similar) were AFAIK never really popular or even available except for commercial applications. And associated costs (hardware, toolchains) were often quite prohibitive for hobbyists.

    de Vaal.Ruud
    Associate III
    October 31, 2018

    Good idea Thank you.