AnsweredAssumed Answered

I2S swapped L/R channels after I2SResume

Question asked by Odry.Akos on Feb 6, 2017
Latest reply on Feb 7, 2017 by waclawek.jan

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.

Attachments

Outcomes