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

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

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

818 次查看
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 回复

709 次查看
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