Altera_Forum
Honored Contributor
14 years agoStrange Ethernet behaviour
We currently have a a design which is based heavily upon the Cyclone 3 FPGA dev kit. However, at this point it is very difficult to return to the Dev Kit to test the software some am hoping someone has some thoughts on this.
Using iNiche i bind and listen to a socket, once this is complete i begin sending data (1300 bytes ish per send) at around 32Mbps. Now here is the problem this only seems to work 50%. I have spent a number of days on this and have added some calls to the TSE registers to allow me to see the tx and rx frame errors. So if after a restart i check the Tx Frame register i can see errors slowly but reasonably steadily incrementing it will not work. (as in Socket usually connects but no Tx) However, if i check and no Tx Errors exist all is well? According to the Link activity and Powers up txt (Below) we have 1000Mbit connection and all is well. During good operation i still see a number of Tx Frame errors which is a a concern but it does work. All ideas welcome. Cheers Tim *** Power Up Text *** [tse_mac_init] INFO : TSE MAC 0 found at address 0x10002000 INFO : PHY Marvell 88E1111 found at PHY address 0x12 of MAC Group[0] INFO : PHY[0.0] - Automatically mapped to tse_mac_device[0] INFO : PHY[0.0] - Restart Auto-Negotiation, checking PHY link... INFO : PHY[0.0] - Auto-Negotiation PASSED MARVELL : Mode changed to RGMII/Modified MII to Copper mode MARVELL : Enable RGMII Timing Control MARVELL : PHY reset INFO : PHY[0.0] - Checking link... INFO : PHY[0.0] - Link not yet established, restart auto-negotiation... INFO : PHY[0.0] - Restart Auto-Negotiation, checking PHY link... INFO : PHY[0.0] - Auto-Negotiation PASSED INFO : PHY[0.0] - Link established INFO : PHY[0.0] - Speed = 1000, Duplex = Full OK, x=1, CMD_CONFIG=0x00000000 MAC post-initialization: CMD_CONFIG=0x0400020b [tse_sgdma_read_init] RX descriptor chain desc (1 depth) created IP address of et1 : 192.168.10.82