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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

372 Views
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 Kudos
1 Reply

263 Views
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