Altera_Forum
Honored Contributor
15 years agoresult=alt_avalon_sgdma_do_async_transfer(sgdma_sd ram, &desc[0])
hi:
in the niosII BST ,I am puzzled in the the code below : ...... result=alt_avalon_sgdma_do_async_transfer(sgdma_sdram, &desc[0]); if(!result) printf("Writing the head of the receive descriptor list to the DMA failed\n"); ...... I use the NiosII debug mode to test the code,after executting "alt_avalon_sgdma_do_async_transfer",I can look into the sdram which the data is translated in,and they seems right,but I cannot get the "result "value which should be "0",it is that ,the program is stalling or something. I guess that the data is still translating ,so "alt_avalon_sgdma_do_async_transfer" return nothing,but I donnot kown how to resolve the problem?