eDMA ping-pong buffer sorting

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

eDMA ping-pong buffer sorting

跳至解决方案
1,438 次查看
Sandroom
Contributor III

Good day to all!
I use IMX8ULPIEC processor and i programming SAI interface under m-33 core.
I receive data in the format ABC_ABC_ABC_ABC... via eDma using the SAI_TransferReceiveLoopEDMA() function and thus receive a ping-pong buffer for two arrays storing ABCABCABC alternately.
However, I would like the data after reception to look like this: AAAA......BBBB......CCCC...(end) and also issued alternately in two buffers as in the ping-pong buffer.
Is it possible to do this within one eDMA stream without stopping reception? Are there any examples of similar packaging?

Thanks in advance.

标记 (4)
0 项奖励
回复
1 解答
1,384 次查看
Sandroom
Contributor III

I figured out the problem.
I had to change the function SAI_TransferReceiveLoopEDMA() a little, called it SAI_TransferReceiveLoopEDMASetuped().
If someone encounters a similar problem, I am attaching a file with the source code of the modified function and its application.

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,385 次查看
Sandroom
Contributor III

I figured out the problem.
I had to change the function SAI_TransferReceiveLoopEDMA() a little, called it SAI_TransferReceiveLoopEDMASetuped().
If someone encounters a similar problem, I am attaching a file with the source code of the modified function and its application.

0 项奖励
回复