Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

TSE-SGDMA something wrong

Hi all,

I'm working on a custom board with nios2 + tse (10/100/1000) + DDR sdram...

I'm trying to use a driver for triple speed eth under u-boot...the driver has been already tested on an altera demo board and is working fine....

On my custom board...the nightmare....I'm able to transmit correctly a packet (ARP request) to PC but when I get the response (ARP Reply) I find that the first byte of the packet (in the destination mac field) is always dropped...

Really strange...at first I tought to some problem between sgdma_rx and ddr...something like a problem that avoid the first byte to be transferred in memory...

Then I did this...I've enabled the rx_shift16 and I found that the packet is actually shifted by 2 bytes but the first byte of dmac field is always missing...

In other words:

arp request to PC: ff ff ff ff ff ff 01 02 3e 0a etc..

arp reply by PC: 01 02 3e 0a etc..

received : 02 3e 0a etc...

rx_shift16 enabled:

received : 00 00 02 3e 0a

TSE seems always dropping one byte.... I don't know how solve it...

Any help will be appreciated..

Carlo

15 Replies