Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12603 Discussions

problems SGDMA control bits (PARK )

Altera_Forum
Honored Contributor II
941 Views

I want to test SGDMA park funvtion 

 

simple test code 

 

temp1=IORD_ALTERA_AVALON_SGDMA_CONTROL(TX_SGDMA_BASE); 

temp1=temp1|ALTERA_AVALON_SGDMA_CONTROL_PARK_MSK; 

IOWR_ALTERA_AVALON_SGDMA_CONTROL(TX_SGDMA_BASE, temp1); 

 

alt_avalon_sgdma_construct_mem_to_stream_desc( &desc[2],//主描述字 

&desc[2],//次描述字 

buf,//发送指针 

1468,//发送字数 

0, 

1,//发送SOP 

1,//发送EOP 

0); 

alt_avalon_sgdma_do_sync_transfer (sgdma_tx_dev, &desc[2]); 

 

SGDMA can continuously work as I imagined 

 

if I chang the code 

temp1=IORD_ALTERA_AVALON_SGDMA_CONTROL(TX_SGDMA_BASE); 

temp1=temp1|ALTERA_AVALON_SGDMA_CONTROL_PARK_MSK; 

IOWR_ALTERA_AVALON_SGDMA_CONTROL(TX_SGDMA_BASE, temp1); 

alt_avalon_sgdma_construct_mem_to_stream_desc( &desc[2],//主描述字 

&desc[3],//次描述字 

buf,//发送指针 

1468,//发送字数 

0, 

1,//发送SOP 

1,//发送EOP 

0); 

 

 

alt_avalon_sgdma_construct_mem_to_stream_desc( &desc[3],//主描述字 

&desc[2],//次描述字 

buf,//发送指针 

1468,//发送字数 

0, 

1,//发送SOP 

1,//发送EOP 

0); 

alt_avalon_sgdma_do_sync_transfer (sgdma_tx_dev, &desc[2]); 

 

SGDMA can not continuously work as I imagined  

 

why?park bit cannot support chain ????
0 Kudos
0 Replies
Reply