[Etherlab-dev] Improved debugging and behavior on sick SII contents

Florian Pose fp at igh.de
Tue Sep 22 12:23:34 CEST 2020


Hi, Graeme,

On Mon, Sep 21, 2020 at 09:40:37PM +0000, Graeme Foot wrote:
> I see you checked in some extra debugging on SII content a couple of weeks
> ago.  Have you identified slaves with consistent SII issues, or are they
> intermittent?  If they are intermittent then it may be due to the master
> reading the SII contents before the slave has completed finished reading it in
> from the EEPROM, so the master ends up getting garbage / uninitialized values.

the reason was, that we started developing some slaves and connected
some uninitialized Trinamic slaves that contained only ones in the SII.
That made the master think that the mailbox sizes were 64k, which lead
to some problems. :-)

But we never came across such things with regular slaves.

> If it’s intermittent, I wrote a patch for Gavin’s patchset which may help.  The
> patch reorders the fsm_slave_scan states so that the datalink states (which
> read register 0x0110) are run before checking the dc registers (which may also
> be initialised from the EEPROM).  This state now blocks until bit 0 is set (PDI
> operation/EEPROM loaded bit) and error's out if there is a timeout.

Good idea, if that helps for those cases, I'd like to merge it. Can you
send me a link to a PR / patch?

-- 
Thanks,
Florian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.etherlab.org/pipermail/etherlab-dev/attachments/20200922/d55ef2c8/attachment.sig>


More information about the Etherlab-dev mailing list