Hello,
Is there an example code that uses LPSPI module in slave mode with eDMA in a continuous loop with the same memory block. The SPI master module is a high end iMX CPU. I am using the SPI_RDY signal but still have some error. Is it possible to setup the slave to response autonomously, without intervention.
Thanks, Guy
None, was looking for one. I use FIFO without DMA. The DMA exchange was added later then my original SDK files. What I have overlook, the code is "complexe" and requires clean-up on error, less autonomous. My ideal configuration would be /CS - Transact Exchange - CS High - self prepare "reset" for next exchange in the slave part. I didn't double check but I think iMX8 doesn't have the SPI RDY signal. We use the iMX6 master - S32K144 slave! FIFO is limited to 4x 32 bits with high speed exchange, DMA would allow larger data exchange with no risk of underrun/overrun/error.
Hi @guys_fr
Take a look at these examples, they will be useful to you.
Example S32K144 FlexCAN0 RXFIFO DMA nonSDK
Example S32K144 FlexCAN RXFIFO DMA
B.R.
VaneB