Forum Discussion
Altera_Forum
Honored Contributor
15 years agoSGDMA debug
Hello, I am trying to learn how to use SGDMA to transfer data to memory. First of all, I am trying to connect SGDMA TX directly to SGDMA RX and check results. You can find the source code ->here<-...
Altera_Forum
Honored Contributor
15 years agoOk I am moving forward.
I've written a code, which successfully takes data from Avalon-ST and writes to the memory. The code is available ->here<- (http://www.codeupload.com/4087). Now when I check the memory contents, I see data written after SOP(Start Of Packet) until EOP(End Of Packet). So SGDMA generates interrupt, status says that EOP is found, descriptor completed and chain is completed. To continue the operation, I thought I had to write do_async_transfer again into SGDMA transfer complete interrupt routine, but that's not working. I suppose I need to set up descriptors again? How can I make the stream-to-memory transfer always continuous? Now it is done once and thats it.