S32K1x Use DMA with SPI Slave in continuous loop

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K1x Use DMA with SPI Slave in continuous loop

1,773件の閲覧回数
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,741件の閲覧回数
JRoberto
NXP TechSupport
NXP TechSupport

Hello @guys_fr 

What example are you trying? On which EVB?

Best Regards

0 件の賞賛
返信

1,737件の閲覧回数
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,703件の閲覧回数
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