Stability sc_ethernet

Technical questions regarding the XTC tools and programming with XMOS.
Post Reply
Noeldi
Member
Posts: 10
Joined: Sun Jan 02, 2011 1:11 pm

Stability sc_ethernet

Post 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.
Attachments
mii.xc
Modivied mii.xc
(17.23 KiB) Downloaded 214 times
mii.xc
Modivied mii.xc
(17.23 KiB) Downloaded 214 times


Post Reply