S32K324 DMA initialzation and use

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

S32K324 DMA initialzation and use

跳至解决方案
3,210 次查看
DY_Liu
Contributor II

Hi team.

 

How should I use DMA?

The DMA I configured was debugged normally, but the full speed operation was abnormal.

basic register to configurate.

For example:

1) initialze uart

2) enable uart dma request (key point)

3) config DMAMUX

4) config DMA

5) enable DMA (key point)

......

 

Thanks

标记 (1)
0 项奖励
回复
1 解答
3,150 次查看
DY_Liu
Contributor II
Hi. Julián_AragónM
I found the reason, Cache must be invalidated.

thanks!

在原帖中查看解决方案

0 项奖励
回复
4 回复数
3,190 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @DY_Liu

Chapter 14.4 of the S32K3xx MCU Family - Reference Manual provides instructions for initializing the DMA channel MUX.

You can also take a look into this DMA with UART example with the S32K344 in this community post:

I hope you find this helpful!

Best regards,
Julián.

0 项奖励
回复
3,177 次查看
DY_Liu
Contributor II

Hi.@Julián_AragónM

Thank you for you help.

But I have a problem, The first call must have a breakpoint, otherwise it will fail.

 

Type 1:

DY_Liu_0-1704258544821.png

DY_Liu_1-1704258561587.png

 

Type 2:

DY_Liu_2-1704258734546.png

DY_Liu_3-1704258752437.png

DY_Liu_4-1704258769765.png

 

api:

DY_Liu_5-1704258799988.png

DY_Liu_6-1704258829002.png

DY_Liu_7-1704258843676.png

 

 

 

 

 

 

 

 

0 项奖励
回复
3,152 次查看
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @DY_Liu,

Could you give us more details about the error? What is the problem if the delay is not set? This is so we can reproduce the example to see if the behavior persists.

Best regards,
Julián.

0 项奖励
回复
3,151 次查看
DY_Liu
Contributor II
Hi. Julián_AragónM
I found the reason, Cache must be invalidated.

thanks!
0 项奖励
回复