# SAM7X256, DP83848 PHY  and lwIP TCP/IP demo

**URL:** <https://forums.freertos.org/t/sam7x256-dp83848-phy-and-lwip-tcp-ip-demo/5042>\
**Category:** Kernel\
**Created:** [May 13, 2007, 8:32am UTC](https://forums.freertos.org/t/sam7x256-dp83848-phy-and-lwip-tcp-ip-demo/5042 "2007-05-13T08:32:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 13, 2007, 8:32am UTC](https://forums.freertos.org/t/sam7x256-dp83848-phy-and-lwip-tcp-ip-demo/5042/1 "2007-05-13T08:32:50Z")

</div>

**nobody** wrote on [Sunday, May 13, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/e0ab9134/#b325):

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

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 13, 2007, 8:36am UTC](https://forums.freertos.org/t/sam7x256-dp83848-phy-and-lwip-tcp-ip-demo/5042/2 "2007-05-13T08:36:44Z")

</div>

**nobody** wrote on [Sunday, May 13, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/e0ab9134/#b325/fa05):

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

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 13, 2007, 9:08am UTC](https://forums.freertos.org/t/sam7x256-dp83848-phy-and-lwip-tcp-ip-demo/5042/3 "2007-05-13T09:08:43Z")

</div>

**nobody** wrote on [Sunday, May 13, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/e0ab9134/#b325/0cd4):

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

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 13, 2007, 9:29am UTC](https://forums.freertos.org/t/sam7x256-dp83848-phy-and-lwip-tcp-ip-demo/5042/4 "2007-05-13T09:29:02Z")

</div>

**nobody** wrote on [Sunday, May 13, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/e0ab9134/#b325/f4a3):

PHY active and link diode blink correct.

Regards  
David

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 13, 2007, 9:38am UTC](https://forums.freertos.org/t/sam7x256-dp83848-phy-and-lwip-tcp-ip-demo/5042/5 "2007-05-13T09:38:02Z")

</div>

**nobody** wrote on [Sunday, May 13, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/e0ab9134/#b325/f4a3/6315):

Try placing a break point in the EMAC ISR.&nbsp; If it never gets hit then there is an interface problem.&nbsp; If it gets hit you will be able to follow the code through to see at what point it is failing.&nbsp; 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.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [May 14, 2007, 11:14am UTC](https://forums.freertos.org/t/sam7x256-dp83848-phy-and-lwip-tcp-ip-demo/5042/6 "2007-05-14T11:14:57Z")

</div>

**[electrolot](https://sourceforge.net/u/electrolot/)** wrote on [Monday, May 14, 2007](https://sourceforge.net/p/freertos/discussion/382005/thread/e0ab9134/#b325/dcc5):

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

Regards  
David
