2018-10-30 08:42 AM
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.
2018-10-30 11:57 PM
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.
2018-10-31 02:00 AM
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
2018-10-31 05:04 AM
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 ?
2018-10-31 05:59 AM
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.
2018-10-31 06:08 AM
Good idea Thank you.