Altera_Forum
Honored Contributor
15 years agoquestions about DMA transmition
hi:
I want to transmit data from FIFO to sdram by DMA in SOPC builder. in NIOSII eclipse, if((tx=alt_avalon_dma_send(txchan,(void*)tx_data,0x1000,NULL,NULL))<0) { printf("failed to send data from fifo \n"); ) always printf: failed to send data from fifo I add "while(1)" to contain this code: while(1) { //the number of translated data at one time for(j=0;j<=100;j++) { if((tx=alt_avalon_dma_send(txchan,(void*)tx_data,0x1000,NULL,NULL))<0) { printf("failed to send data from fifo \n"); // } if( j==90) exit(1); } but it always failed ... is there somebody can give me any hints? thanks~