S32K DMA Minor and Major Loop Offsets

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

S32K DMA Minor and Major Loop Offsets

跳至解决方案
2,552 次查看
sean_dvorscak
Contributor III

While using DMA, I want to use the Minor Loop Offset feature (MLOFF), but am concerned the affects it will have on SLAST.

Will the minor loop offset happen every minor loop completion, even at the end of the major loop (CITER count == 0)?

I am asking because I had an instance where someone had set the MLOFF and SLAST on accident, but we somehow achieved correct results.  I was expecting at the end of the major loop, the MLOFF would do the offset on the source address, and then the SLAST would do another offset, leaving our source address 1 offset back too far.  But this didn't seem to be the case.

Was hoping someone could clear this up for me.  Is the minor loop offset ignored when the CITER count reaches 0 and only SLAST will do an offset at that point?

Would also be nice if there was a flowchart of what the DMA is doing under the hood.  There are a lot of scenarios with how the DMA TCDs are being updated by the DMA that leave us guessing how we think it will work.

0 项奖励
回复
1 解答
2,516 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @sean_dvorscak,

You did not specify the MCU.

But yes, the minor loop offset is ignored.

 

S32K1xx RM:

danielmartynek_0-1690900131570.png

 

AN4522, Examples of Setting the DMA Controller on the Power Architecture® MPC5675K Family of Microcontrollers

https://www.nxp.com/docs/en/application-note/AN4522.pdf

danielmartynek_1-1690900193393.png

 

Regards,

Daniel

在原帖中查看解决方案

0 项奖励
回复
1 回复
2,517 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @sean_dvorscak,

You did not specify the MCU.

But yes, the minor loop offset is ignored.

 

S32K1xx RM:

danielmartynek_0-1690900131570.png

 

AN4522, Examples of Setting the DMA Controller on the Power Architecture® MPC5675K Family of Microcontrollers

https://www.nxp.com/docs/en/application-note/AN4522.pdf

danielmartynek_1-1690900193393.png

 

Regards,

Daniel

0 项奖励
回复