Page 1 of 1

i2s dma single send or run-time buffer update

Posted: Wed May 08, 2024 10:33 am
by Earplugs8774
Hi there,
I am using i2s legacy to send a defined pattern of data out of i2s DOUT. The packet is 216 bytes long.
I need to change the packet at runtime with a frequency between 5ms and 10ms.
When I try to use the i2s_write function it occasionally results in a corrupted DOUT.
There are a couple of solutions that could solve my problem:
- Send a single packet each time I need it. How is the driver supposed to manage a single shot transmission?
- refresh the buffer without packet corruption. How is the driver supposed to manage a run-time update of the buffer?

Thanks