Page 1 of 1

Stability sc_ethernet

Posted: Wed May 02, 2012 3:27 pm
by Noeldi
We use the 2-Port Ethernet in a big infrastructure and sometimes it happens that the Ethernet stops working.
Sometimes means in 5 minutes or after 10 hours.
I did 3 modifications in “mii.xc”:

1. Moved two lines of code before #pragma xta endpoint "mii_rx_sixth_word" to relax the timming requirements for route 6 and modify the optimization in “module_build_info” to
XCC_FLAGS_mii.xc = $(XCC_FLAGS) -g -O3
This also allows the debugging and relax the requirements for the Clock to less than 400 MHz

2. Check the packet length in the receive loop

3. Handle the ETHERNET-IFS differently in the transmit

In special after the third modification the ethernet is running stable.
Perhaps someone in this forum has also problems with the Ethernet stability and can try this.