S32K DMA Minor and Major Loop Offsets

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

S32K DMA Minor and Major Loop Offsets

ソリューションへジャンプ
2,558件の閲覧回数
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,522件の閲覧回数
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,523件の閲覧回数
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 件の賞賛
返信