Page 2 of 2

Re: Restarting an I2S transfer changes alignement in DMA RX buffer

Posted: Fri Jul 27, 2018 3:01 pm
by Giovanni
Interesting, that is on the F7 which has a FIFO but flushing the data register after stopping the master clock and DMAs could be a solution. Another option would be to reset the SPI peripheral on i2sStart().

Giovanni

Re: Restarting an I2S transfer changes alignement in DMA RX buffer

Posted: Fri Oct 26, 2018 3:08 pm
by tsichevski
I've managed to recover from this problem. Before starting DMA, I explicitly fetch a few half-words from the I2S data register, and find where the sample start sequence begins. Unfortunately, this solution is not universal: is works for my particular codec chip :(

Regards,
Vladimir

Re: Restarting an I2S transfer changes alignement in DMA RX buffer

Posted: Sun Jan 20, 2019 3:24 pm
by Giovanni
bump