AnsweredAssumed Answered

SPWF04SA SPI send race condition

Question asked by Dat Tran on Feb 14, 2018
Latest reply on Mar 12, 2018 by Dat Tran

Hi,

 

When using the SPI interface on the SPWF04SA, firmware 1.1, say we have a packet to write (no payload for simplicity) and nHostIRQ has not been asserted. We set CS low, write the packet header, then set CS high. Say the module also has a packet to send us, the host, right as we're about to set CS low and write the header.
Is there a potential race condition here? What happens or is expected if the module has data to send but we ignore it, for whatever reason, and we go on writing the packet? Do we need to check the received data for a sync word from the module and resend our packet? Do our sends take priority?

 

Thanks!

Outcomes