S32K1x Use DMA with SPI Slave in continuous loop

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K1x Use DMA with SPI Slave in continuous loop

1,760 次查看
guys_fr
Contributor II

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

0 项奖励
回复
3 回复数

1,728 次查看
JRoberto
NXP TechSupport
NXP TechSupport

Hello @guys_fr 

What example are you trying? On which EVB?

Best Regards

0 项奖励
回复

1,724 次查看
guys_fr
Contributor II

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.

0 项奖励
回复

1,690 次查看
VaneB
NXP TechSupport
NXP TechSupport

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