Microchip's TCP/IP stack is not designed to be re-entrant and is very state machine dependent. You might have two different physical layer applications (for the internal MAC/PHY and the external MAC/PHY), but that does not duplicate things higher on the stack. By running two ports on one machine, you could easily have a race and end up with the system executing illegal code/locking up. Using a newer stack does not necessarily solve this problem. You may be able to carefully go through the code to have duplicate stacks for each port (such as a tcp-port1.c and tcp-port2.c. This will have the stack take up a lot more memory. FYI- Microchip just released (less than a couple hours ago) the new version of the Microchip Applications Library, which contains v5.36 of the TCP/IP stack. Matt Bennett Just outside of Austin, TX 30.51,-97.91 The views I express are my own, not that of my employer, a large multinational corporation that you are familiar with. On Sun, June 19, 2011 11:17 pm, Forrest Christian wrote: > Two items: > > 1) Enable watchdog timer, see if that fixes it, and if so, then you need > to figure out where it is endless looping. > > 2) if watchdog timer still works, you need to perhaps look at whether or > not the Micrel phy is locking up. When you say 'push button' what is the > button doing. Perhaps you should fix it so a button press also triggers > a led run by the program so you can figure out whether or not it's the > processor or something with the ethernet. > > I ran into a problem in an application where I had an ENC28J60 which was > locking up when ethernet errors were encountered. Adding code to check > the ENC state every once in a while and resetting/reprogramming resolved > that issue. > > -forrest > > On 6/19/2011 6:33 PM, ???? wrote: >> Dear Engineer, >> >> I want to know whether TCPIP Stack v5.31 can work well or not. >> PIC18F97J60 is used in our products. The version of TCPIP stack we >> are >> using is v5.10 by 20090729, we want to update the TCPIP stack to the >> latest >> version to enhance network performances. >> The causes we want to do the update is as follows: >> We have two sorts of DUTs (Design Under Test), one is with 1 > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .