SAM7X256, DP83848 PHY and lwIP TCP/IP demo

I have board with SAM7X256 and DP83848 PHY. I’m trying to run lwIP TCP/IP FreeRTOS demo. LEDs and USB work fine, but I have trouble with web server. I changed PHY ID to DP83848 in file SAM7_EMAC.c and emacIPADDRx in SAM7_EMAC.h. When I debug code ID read from PHY is OK, but web does not show in browser. I tested MII and RMII interface. My cable and LAN is OK because I have running LPC2378 web examples and works fine. I will be grateful for any ideas. Regards David

SAM7X256, DP83848 PHY and lwIP TCP/IP demo

I want compile uIP Embedded WEB Server Demo on an LPC2368 but I don’t use CrossStudio. I will be grateful for GCC makefile for this examples. Regards David

SAM7X256, DP83848 PHY and lwIP TCP/IP demo

Does the PHY indicate that a link has been established?  Is there a link LED on?

SAM7X256, DP83848 PHY and lwIP TCP/IP demo

PHY active and link diode blink correct. Regards David

SAM7X256, DP83848 PHY and lwIP TCP/IP demo

Try placing a break point in the EMAC ISR.  If it never gets hit then there is an interface problem.  If it gets hit you will be able to follow the code through to see at what point it is failing.  I should start experimentations with simple PING requests as it is then easier to follow the data path through the code without having to get into the TCP stuff.

SAM7X256, DP83848 PHY and lwIP TCP/IP demo

Thanks for help. It works now. I change optimisation level to O3 and all is OK. Regards David