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.
Solved! Go to Solution.
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.