Forum Discussion
Altera_Forum
Honored Contributor
20 years agoDMA transfer from SDRAM to PIO
Hello. I'm now trying to use DMA for transferring data from SDRAM to PIO. But I don't know how to use DMA in eCos. (I searched this forum, but I couldn't find.) Can someone...
Altera_Forum
Honored Contributor
20 years agoTo simplify life, I wouldn't use any eCos DMA stuff; I'd talk right to the DMA hardware with IORD/IOWR (in <cyg/hal/io.h>). Read the Altera documentation on the DMA peripheral and its registers. Starting the DMA should amount to four IOWR()s; one each to set source and destination addresses and word count, and another to set the transfer-type flags and start the DMA.