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

Attachment: signature.asc
Description: PGP signature

-- 
Etherlab-dev mailing list
Etherlab-dev@etherlab.org
http://lists.etherlab.org/cgi-bin/mailman/listinfo/etherlab-dev

Reply via email to