S32K324 DMA initialzation and use

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

S32K324 DMA initialzation and use

ソリューションへジャンプ
3,175件の閲覧回数
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,115件の閲覧回数
DY_Liu
Contributor II
Hi. Julián_AragónM
I found the reason, Cache must be invalidated.

thanks!

元の投稿で解決策を見る

0 件の賞賛
返信
4 返答(返信)
3,155件の閲覧回数
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,142件の閲覧回数
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,117件の閲覧回数
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,116件の閲覧回数
DY_Liu
Contributor II
Hi. Julián_AragónM
I found the reason, Cache must be invalidated.

thanks!
0 件の賞賛
返信