Tool/software:
Hi Expert,
The customer is currently using the default spidev_test.c file and has not changed the content.
Does spidev_test.c use FIFO or DMA to move data through SPI? (We hope to use FIFO)
Thanks
Daniel
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.
Tool/software:
Hi Expert,
The customer is currently using the default spidev_test.c file and has not changed the content.
Does spidev_test.c use FIFO or DMA to move data through SPI? (We hope to use FIFO)
Thanks
Daniel
Hi Daniel
Does spidev_test.c use FIFO or DMA to move data through SPI? (We hope to use FIFO)
whether FIFO and/or DMA is used depends on the Kernel driver, how it is configured, and the size of the SPI transfer. It is not under direct control of userspace applications such as the spidev_test.c application.
Specifically, as for our current SDK v11.x (based on Linux Kernel 6.12), the following applies:
For more information on how to configure the use of DMA and to update the minimum transfer length, see here: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1356551/faq-am6x-optimizing-spi-transfer-inter-byte-gaps-using-the-dma-in-linux
Usually the use of DMA helps to reduce (but not eliminate) the "inter-byte gaps" observed during SPI master operation.
Regards, Andreas