Altera_Forum
Honored Contributor
13 years agoSGDMA Transfers only 20 bytes
Hi,
I am having an issue using the SGDMA core with a NIOS core and uCOSII. I think the code sets up the descriptor correctly (this to tx a packet out the TSE MAC): the source is the transmit buffer in memory (verified as having the correct data in the buffer), the destination is 0 because it is streaming peripheral, and the bytes_to_transfer is 60 (it is an ARP packet). Checking the descriptor for the actual_bytes_transferred the value is 60. Sometimes the packet is transmitted over Ethernet as expected, but sometimes only the first 20 bytes are transmitted correctly, the other 40 bytes appear to be random data. The tx buffer data is double word (32bit) aligned. Anyone had this type of issue with the SGDMA controller before? Thank you for any help.