DMA 4.0.0 driver won't let configure DMA request (for LPSPI)

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

DMA 4.0.0 driver won't let configure DMA request (for LPSPI)

跳至解决方案
78 次查看
sstelmak
Contributor II

With DS3.5 and RTD 4.0.0.202311, micro S32K344

I tried to configure LPSPI to use DMA.

DMA_IP won't let select DMAMUX source.

In the attached doc there are UM screenshot and the actual from DS.

UM shows that DMA channel gets linked with, in that example,  SPI2_Tx source.

Actual config does not have any fields to configure DMA source.

Is it enough to pick just any two DMA hardware channels and tell LPSPI to use them for SPI tx/rx?

 

标签 (1)
标记 (1)
0 项奖励
1 解答
40 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @sstelmak 

Check the following thread. It seems to have information related to the topic you may find useful. 

S32k3 RTD 3.0.0 removed dmamux configuration in code generator

 

B.R. 

VaneB

在原帖中查看解决方案

0 项奖励
2 回复数
23 次查看
sstelmak
Contributor II

Hello VaneB,

Your suggestion is correct.

RM component does include DMAMUX source config, I added that and also Rm_Init call.

Unfortunately entire Lpspi component still does not work as it was with 2.0.0 RTD version.

It is probably because of DMA config issue since Lpspi_Ip_SyncTransmit works fine but Lpspi_Ip_AsyncTransmit makes absolutely no activity.

I wonder if there any more updates in 4.0.0 that could affect DMA functionality?

0 项奖励
41 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @sstelmak 

Check the following thread. It seems to have information related to the topic you may find useful. 

S32k3 RTD 3.0.0 removed dmamux configuration in code generator

 

B.R. 

VaneB

0 项奖励