suc_eof interrupt moment

Slinisa
Posts: 26
Joined: Sat Oct 07, 2023 8:21 am

suc_eof interrupt moment

Postby Slinisa » Sat Oct 14, 2023 2:09 pm

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?

ESP_Sprite
Posts: 9053
Joined: Thu Nov 26, 2015 4:08 am

Re: suc_eof interrupt moment

Postby ESP_Sprite » Sun Oct 15, 2023 12:06 am

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.)

Who is online

Users browsing this forum: No registered users and 133 guests