Altera_Forum
Honored Contributor
16 years agoDMA burst data transfer
Hi
I am working on DMA of Nios II , In SOPC builder i have set burst size of DMA as 128 words so i should be able to transfer 128 words or (128*4=512) bytes In Nios IDE i see i am able to trasfer 128 bytes,256 bytes,384(256+128)bytes but not able to transfer 512 bytes whats wrong with my code After opening the tx and rx channels of DMA the data transfer in Dma is as follows if((rc=alt_dma_txchan_send(txchan,EXT_RAM_BASE,128,NULL,NULL))<0) { printf("Failed to post transmit request ,reason =%i\n",rc); exit(1); } /*Post the receive requestr*/ if((rc=alt_dma_rxchan_prepare(rxchan,(void*)offset,128,dma_done,NULL))<0) { printf("Failed to post read request ,reason =%i\n",rc); exit(1); } regards M Kalyansrinivas