Bug with first slave with many PDOs and DC enabled.
If the first slave has DC enabled and enouh PDOs to need more than [EC_MAXLRWDATA - EC_FIRSTDCDATAGRAM] bytes in the process image, the first segment's size will be zero instead of EC_FIRSTDCDATAGRAM and this cause the wrongly reading for the wkc at receiving time.
I'd like to get some additional information to verify the fix Could you add a slaveinfo dump with that 1 slave Can capture a wireshark from simple_test with that 1 slave
Unfortunately the wireshark dump does not show how the fix should work. Slave 1 has an input size smaller than [EC_MAXLRWDATA - EC_FIRSTDCDATAGRAM] (1486 - 20). So everything works normal.
Also I think the fix is incorrect. When having a first slave with a very large PDO size then the correct solution would be to remove the LRW datagram when the segment size = 0 (or replace it with a NOP datagram).
This fix needs some re-work , please update and repost a proper fix as Arthur suggested