I am outputting audio over I2S at 8k with a 128 sample buffer. I was getting timing issues so I turn on an LED on the Half way callback and turn it off on the complete callback. I expect a 50% duty cycle. But I get the output below on my scope. Anyone else see this or know what can cause it? The overall time is about right for a 256 sample buffer at 8k but the timing is wrong
Thanks. I have tried different rates. I actually looked closer at the standard DK code from ST and that fails also. I'm doing nothing in the interrupt except turning an LED on on one callback and off on the other. The Half Complete callback fires immediately before the Complete callback on DMA transfer for SPI and I2S when in circular mode