S32K344 SPI + DMA with MCAL configuration not send out all bytes

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

S32K344 SPI + DMA with MCAL configuration not send out all bytes

824件の閲覧回数
Mark_977
Contributor I

I use MCAL package SW32K3_RTD_4.4_2.0.2 to configure SPI and DMA. 

When I try to send data, it only sends out 4 bytes while I configured 8 bytes in EB.

What would be the probelm that cause this problem?

Signals wafeform:

signal waveform1.pngsignal waveform2.png

Test Code:

TestCode.png

Following is my configuration:

SPI_Config.pngSPI_RX_DMA.pngSPI_RX_DMA_1.pngSPI_TX_DMA.pngSPI_TX_DMA_1.png

0 件の賞賛
返信
1 返信

715件の閲覧回数
cuongnguyenphu
NXP Employee
NXP Employee

Hi,
From my point of view, you should try to change 
DMAMUX source to DMA_MUX_0_LPSPI_5_TX_REQUEST/ DMA_MUX_0_LPSPI_5_RX_REQUEST
instead of DMA_IP_REQ_MUX0_ALWAYS_ON1

cuongnguyenphu_0-1703844471468.png