cancel
Showing results for 
Search instead for 
Did you mean: 

SPWF04SA SPI send race condition

Dat Tran
Senior II
Posted on February 14, 2018 at 14:44

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!

1 REPLY 1
Dat Tran
Senior II
Posted on March 12, 2018 at 19:18

Any idea, please?