Associate III
Feb 6, 2017 10:24 PM UTC
Question
I2S swapped L/R channels after I2SResume
- 5 replies
- 2071 views
Posted on February 06, 2017 at 23:24
Hello,
I collect the ADC data through the I2S1 peripheral using DMA2
Once
1) i collected certain amount of results,
2) the reception is paused with:
HAL_I2S_DMAPause(&hi2s1);
3) I send the data through UART
4) then the reception is resumed with:
HAL_I2S_DMAResume(&hi2s1);
then this mechanism can be started again from point 1).
What i observed is that somehow (not always, but ~8/10 times) the L and R channels have been swapped. I attached a figure of the results.
(I inferred on the swapping based on that the ADC sends ch1 and ch2 results one after another, and the voltage on ch1 is approximately 10 times bigger then on ch2)
Is there anyone who could give me a tip what is the problem?
Thank you very much in advance.
Best regards.
#stm32-i2s-dma #programming-i2s #i2s-dma #stm32-i2s #i2s-channel-side-issue #i2s