This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/PROCESSOR-SDK-AM335X: Pause During Short User Space SPI Transfer

Part Number: PROCESSOR-SDK-AM335X

Tool/software: Linux

Hi,

I am observing a problem which occurs during a user space SPI transfer where a transfer sometimes gets held up after sending the first byte. I have tried to transfer using either a single

spi_ioc_transfer struct to handle both transmit and receive or two structs, one for transmit and one for receive with the same results.

The interruption does not occur often, about once every 15 min. during continuous communications. The thread has been configured to be a high priority real time thread using the FIFO policy, within a high priority process. Does anyone have any insight as to what could be causing this pause and how to reduce it? It is problematic because the slave device has a bus timeout slightly less than the pause. You can see in the attached trace it lasts for about 400uS. 

Thanks,

Tom