Restarting an I2S transfer changes alignement in DMA RX buffer

Report here problems in any of ChibiOS components. This forum is NOT for support.
User avatar
Giovanni
Site Admin
Posts: 11860
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 524 times
Been thanked: 437 times
Contact:

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

Postby Giovanni » Fri Jul 27, 2018 3:01 pm

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

tsichevski
Posts: 35
Joined: Fri Feb 09, 2018 12:44 am
Has thanked: 2 times
Been thanked: 5 times

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

Postby tsichevski » Fri Oct 26, 2018 3:08 pm

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

User avatar
Giovanni
Site Admin
Posts: 11860
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 524 times
Been thanked: 437 times
Contact:

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

Postby Giovanni » Sun Jan 20, 2019 3:24 pm

bump


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 1 guest