Single wire interface module(SWIM) programming for STM8 MCUs

Hi,

I want to implement SWIM protocol for multiple STM8 MCUs using BB_Black. As per my knowledge it can happen only for one STM8 MCU, but what if I want to program more than 2 STM8 MCUs at a time/one by one??

Is it possible? Please guide me for the same with hardware connection of BB_Black with STM8 MCU if possible.

On Wed, 8 May 2019 06:48:49 -0700 (PDT), "ankit.nikumbh via BeagleBoard"
<beagleboard@googlegroups.com> declaimed the
following:

I want to implement SWIM protocol for multiple STM8 MCUs using BB_Black. As
per my knowledge it can happen only for one STM8 MCU, but what if I want to
program more than 2 STM8 MCUs at a time/one by one??

  For multiple MCUs, programmed one at a time, using a common SWIM GPIO
lead, you will have to implement some sort of chip select logic using a
suitable digital logic gate (AND, maybe -- you will have to determine the
proper family [open collector, NAND or AND, etc. so that the default state
is "off"]). The SWIM GPIO will connect to one input of each gate (one gate
per MCU). You will also need a set of addition GPIOs (one for each MCU --
but see NOTE). You set the MCU select GPIO for ONE gate, leaving the others
in the "off" position. Then you

A W1 bus can handle multiple devises, each one addressed by an 8 byte ID. Different devices can share the same bus, ie. sensors, MCUs, … But the w1-kernel driver doesn’t support multiple devices.

Have a look at libpruw1 project.

Regards