Page 1 of 1

suc_eof interrupt moment

Posted: Sat Oct 14, 2023 2:09 pm
by Slinisa
I've made linked descriptors chain for dma transfer and it works fine. The problem I get is when filling up the buffer of the descriptor that caused the interrupt. The data filled is not what I expected to receive. That raises the question: at which point is said interrupt triggered? At the beginning or end of sent data?
Is the descriptor in the interrupt event_data argument the one that caused the interrupt?

Re: suc_eof interrupt moment

Posted: Sun Oct 15, 2023 12:06 am
by ESP_Sprite
It should be triggered when the DMA has processed that segment fully. (But do note that for data sent to a peripheral, that does not mean the peripheral also is done with the data, as there generally is a small FIFO in the peripheral as well.)