I modified the mimxrt685audevk_lpadc_dma_cm33 example from SDK 25.9 for MIMXRT685-AUD-EVK to create this chain:
CTIMER0 -> ADC -> DAC -> PingPongBuffer in RAM.
CTIMER0: 32kHz; ToggleBit on Match_CH_3
ADC0: Start on Trigger 5; Create interrupt for DMA every 16 samples (FIFO watermark = 15)
DMA0: PingPong; Start on Hardware trigger 24
I added Set/Clear pins to the callbacks for debugging.
From the pin log, it appears that the CTimer0 callback is delayed when the DMA is triggered, even though the DMA is executed at a time that does not overlap with the CTimer timing.
Can anyone tell me why this happens?