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++
12589 Discussions

Freeze after auto negotiation

Altera_Forum
Honored Contributor II
1,259 Views

I am running the simple socket server example on my custom board. I'm having a problem with it freezing right after "auto-negotiation passed". 

InterNiche Portable TCP/IP, v3.1 Copyright 1996-2008 by InterNiche Technologies. All rights reserved. prep_tse_mac 0 -->Created "Inet main" task (Prio: 2) Created "clock tick" task (Prio: 3) Your Ethernet MAC address is 00:07:ed:ff:0d:cb Static IP Address is 138.254.102.120 prepped 1 interface, initializing... INFO : TSE MAC 0 found at address 0x0c000000 INFO : PHY Marvell 88E1111 found at PHY address 0x12 of MAC Group INFO : PHY - Automatically mapped to tse_mac_device INFO : PHY - Restart Auto-Negotiation, checking PHY link... INFO : PHY - Auto-Negotiation PASSED MARVELL : Mode changed to RGMII/Modified MII to Copper mode MARVELL : Enable RGMII Timing Control MARVELL : PHY reset INFO : PHY - Checking link... INFO : PHY - Link not yet established, restart auto-negotiation... INFO : PHY - Restart Auto-Negotiation, checking PHY link... INFO : PHY - Auto-Negotiation PASSEDIf I step it through in debug, it does a little better. I can't figure out what is going wrong. 

InterNiche Portable TCP/IP, v3.1 Copyright 1996-2008 by InterNiche Technologies. All rights reserved. prep_tse_mac 0 -->Created "Inet main" task (Prio: 2) Created "clock tick" task (Prio: 3) Your Ethernet MAC address is 00:07:ed:ff:fc:4f Static IP Address is 138.254.102.120 prepped 1 interface, initializing... INFO : TSE MAC 0 found at address 0x0c000000 INFO : PHY Marvell 88E1111 found at PHY address 0x12 of MAC Group INFO : PHY - Automatically mapped to tse_mac_device INFO : PHY - Restart Auto-Negotiation, checking PHY link... INFO : PHY - Auto-Negotiation PASSED MARVELL : Mode changed to RGMII/Modified MII to Copper mode MARVELL : Enable RGMII Timing Control MARVELL : PHY reset INFO : PHY - Checking link... INFO : PHY - Link established INFO : PHY - Speed = 1000, Duplex = Full OK, x=95, CMD_CONFIG=0x00000000 MAC post-initialization: CMD_CONFIG=0x0400020b RX descriptor chain desc (1 depth) created No free buffers for rx No free buffers for rx No free buffers for rx No free buffers for rx No free buffers for rx No free buffers for rx No free buffers for rx No free buffers for rxDoes anyone have any tips?
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
294 Views

"No free buffers for rx" usually means that the IP stacks is receiving too many packets and can't handle the traffic. Is there a lot going on on the network? Especially broadcast packets, that would go through the MAC address filter in the TSE component.

0 Kudos
Altera_Forum
Honored Contributor II
294 Views

 

--- Quote Start ---  

"No free buffers for rx" usually means that the IP stacks is receiving too many packets and can't handle the traffic. Is there a lot going on on the network? Especially broadcast packets, that would go through the MAC address filter in the TSE component. 

--- Quote End ---  

 

I have tried running it on an isolated network just by itself to a switch and it doesn't seem to make a difference.
0 Kudos
Altera_Forum
Honored Contributor II
294 Views

There could be a hardware problem that would cause the receive DMA to get data even when there are no packets on the network. Could you use a signaltap probe on the Avalon Stream interface between the Ethernet MAC and the receive DMA? Check if there is any traffic there.

0 Kudos
Altera_Forum
Honored Contributor II
294 Views

hello Kriska, 

 

from past several days i also stuck at same Freeze problem, but didn't get any solution, if you got the solution please tell me how to overcome from freeze auto negotiation. 

 

kaushal 

 

 

--- Quote Start ---  

I am running the simple socket server example on my custom board. I'm having a problem with it freezing right after "auto-negotiation passed". 

InterNiche Portable TCP/IP, v3.1 Copyright 1996-2008 by InterNiche Technologies. All rights reserved. prep_tse_mac 0 -->Created "Inet main" task (Prio: 2) Created "clock tick" task (Prio: 3) Your Ethernet MAC address is 00:07:ed:ff:0d:cb Static IP Address is 138.254.102.120 prepped 1 interface, initializing... INFO : TSE MAC 0 found at address 0x0c000000 INFO : PHY Marvell 88E1111 found at PHY address 0x12 of MAC Group INFO : PHY - Automatically mapped to tse_mac_device INFO : PHY - Restart Auto-Negotiation, checking PHY link... INFO : PHY - Auto-Negotiation PASSED MARVELL : Mode changed to RGMII/Modified MII to Copper mode MARVELL : Enable RGMII Timing Control MARVELL : PHY reset INFO : PHY - Checking link... INFO : PHY - Link not yet established, restart auto-negotiation... INFO : PHY - Restart Auto-Negotiation, checking PHY link... INFO : PHY - Auto-Negotiation PASSEDIf I step it through in debug, it does a little better. I can't figure out what is going wrong. 

InterNiche Portable TCP/IP, v3.1 Copyright 1996-2008 by InterNiche Technologies. All rights reserved. prep_tse_mac 0 -->Created "Inet main" task (Prio: 2) Created "clock tick" task (Prio: 3) Your Ethernet MAC address is 00:07:ed:ff:fc:4f Static IP Address is 138.254.102.120 prepped 1 interface, initializing... INFO : TSE MAC 0 found at address 0x0c000000 INFO : PHY Marvell 88E1111 found at PHY address 0x12 of MAC Group INFO : PHY - Automatically mapped to tse_mac_device INFO : PHY - Restart Auto-Negotiation, checking PHY link... INFO : PHY - Auto-Negotiation PASSED MARVELL : Mode changed to RGMII/Modified MII to Copper mode MARVELL : Enable RGMII Timing Control MARVELL : PHY reset INFO : PHY - Checking link... INFO : PHY - Link established INFO : PHY - Speed = 1000, Duplex = Full OK, x=95, CMD_CONFIG=0x00000000 MAC post-initialization: CMD_CONFIG=0x0400020b RX descriptor chain desc (1 depth) created No free buffers for rx No free buffers for rx No free buffers for rx No free buffers for rx No free buffers for rx No free buffers for rx No free buffers for rx No free buffers for rxDoes anyone have any tips? 

--- Quote End ---  

0 Kudos
Reply