Altera_Forum
Honored Contributor
15 years agoalt_avalon_sgdma_construct_mem_to_mem_desc()
hi:
"alt_avalon_sgdma_construct_mem_to_mem_desc()"can only transmit the number of data smaller than 65535 bytes ,so if I want to transmit data which the number is larger than 65535,how I can realize it? the following is the code which I have a try,but the niosII software always "suspend". for(i=0;i<=1;i++) { alt_u32 *write_addr = (alt_u32 *)(DDR_SDRAM_BASE+0xDFFC*i); usleep(100000); alt_avalon_sgdma_construct_mem_to_mem_desc( &desc[0], &desc[1], read_addr, write_addr, 65530, 1, 0); alt_avalon_sgdma_do_sync_transfer(sgdma_sdram, &desc[0]); } when i=0,the 65530 bytes data transmits OK,but when i=1,the code seems to stop(cannot excute the following code). thanks ~