SWIM protocol implementation

Hi,

I want to program STM8 MCUs using SWIM protocol with the help of Arduino. This will be not for a single board. I want to implement it on multiple boards like more than 6 STM8 MCUs.

So is it possible using Arduino?? if yes then how can I implement it(require hardware connections)?

Please guide me for the same.

Waiting for your response.

Thanks

Well, I suggest you take a good read on ST's UM0470 (STM8 SWIM communication protocol and debug module user manual) then.

Thanks, LightuC for your quick response.

I read the document but I think it is only for one MCU only. But if more than one MCUs are there then is it possible to program those all at a time or one by one using arduino?

No, you can only connect one device with the host at a time - SWIM is not a bus protocol. To program multiple devices with one host at the same time, you would need to write your own bootloader or something similar.

Hi,

Did you eventually manage to program the STMs through SWIM? Did you use a library or is it all hand-made?