Problems about Major Loop configuration when DMA is used for SPI

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problems about Major Loop configuration when DMA is used for SPI

2,083 Views
FOR_EACH
Contributor II

Using DMA SPI in S32K3, how can I operate the target address offset after the Major Loop completes a count? Now  i have achieved the Minor Loop target address offset, how can i configure the Major Loop target address offset.

I want to achieve a Minor Loop target address offset of - 1byte and a Major Loop target address offset of 8Byte. How do I configure DMA?

FOR_EACH_0-1663739370693.png

 

0 Kudos
Reply
5 Replies

1,969 Views
JRoberto
NXP TechSupport
NXP TechSupport

Sure, 

I edited the dma_ip example to create the desired behavior on the channel 0. The only difference is that I set a space of 8 addresses in the destination buffer. 

 

JRoberto_0-1666044195847.png

 

0 Kudos
Reply

2,038 Views
JRoberto
NXP TechSupport
NXP TechSupport

Could you confirm this is the desired behavior please?

 

JRoberto_0-1664395610703.jpeg

 

 

0 Kudos
Reply

2,016 Views
FOR_EACH
Contributor II

That's what I want.

FOR_EACH_0-1665212310957.png

 

0 Kudos
Reply

2,057 Views
JRoberto
NXP TechSupport
NXP TechSupport

Hello @FOR_EACH 

You can use this parameters to set the offset after every minor or major loop

JRoberto_0-1663866974979.png

 

Best Regards!

0 Kudos
Reply

2,052 Views
FOR_EACH
Contributor II

Hello @JRoberto 

Can you give an example of how to configure? Because I've configured it like this, but it doesn't achieve the effect I want.

FOR_EACH_2-1663918769339.png

 

FOR_EACH_1-1663918629069.png

 

 

0 Kudos
Reply