Altera_Forum
Honored Contributor
11 years agoTSE RX Problem
Hello to all,
I´d tried get my system work. But it seems to be an endloss story. Iám using the Triple Speed Ethernet IP with 10/100/1000 Ethernet MAC. with 2 SGDMA´s one RX one TX and Descriptor Memory... Sending Frames is no Problem. It works fine. But on Receive Side there are still some problems. I have init the MAC-CMD-Register withMACwrite(0x02,0x00000033); // enable TX_ENA and RX_ENA PROMIS_EN PAD_EN Then initialize the RX SGDMA // Set interrupts for the sgdma receive device --> IEGLOBAL, IE_DESCRIPTOR_COMPLETED Interrupt
alt_avalon_sgdma_register_callback( devrx, &rx_ethernet_isr, 0x00000014, NULL );
// Create sgdma receive descriptor
alt_avalon_sgdma_construct_stream_to_mem_desc( &descriptor3, &descriptor4, rxbuf, 0, 0 );
// Set up non-blocking transfer of sgdma receive descriptor
alt_avalon_sgdma_do_async_transfer( devrx, &descriptor3 );
If I try this the interrupt will never be executed. But when i change Interrupt-source to IE_ERROR the interrupt works. But where does this Error come from??? May you can help. Thanks Seb