# Problem web server CORTEX\_STM32F107\_GCC\_Rowle

**URL:** <https://forums.freertos.org/t/problem-web-server-cortex-stm32f107-gcc-rowle/936>\
**Category:** Kernel\
**Created:** [August 2, 2012, 2:43pm UTC](https://forums.freertos.org/t/problem-web-server-cortex-stm32f107-gcc-rowle/936 "2012-08-02T14:43:18Z")\
**Posts on this page:** 9\
**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:** [August 2, 2012, 2:43pm UTC](https://forums.freertos.org/t/problem-web-server-cortex-stm32f107-gcc-rowle/936/1 "2012-08-02T14:43:18Z")

</div>

**[nicoooooooooo](https://sourceforge.net/u/nicoooooooooo/)** wrote on [Thursday, August 02, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/27c5f0e5/#928f):

Hi everybody,

I have a problem with the demo example “CORTEX\_STM32F107\_GCC\_Rowley” (7.1.1 version). I have no problem with building and launch the demo on my STM3210C-EVAL board, the LCD displays “[www.freertos.org](http://www.freertos.org)”, the IP of the web server and the status. However, when I ping the web server, it doesn’t work at all. My network configuration is okay. I am convinced it comes from the demo. Everyone already encountered this problem and figured out how to solve it ?

Thank you 🙂

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [August 2, 2012, 3:13pm UTC](https://forums.freertos.org/t/problem-web-server-cortex-stm32f107-gcc-rowle/936/2 "2012-08-02T15:13:26Z")

</div>

**[davedoors](https://sourceforge.net/u/davedoors/)** wrote on [Thursday, August 02, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/27c5f0e5/#a3b7):

How are you connecting to the EVAL board? Directly or through a hub?  
What kind of cable are you using? Standard ethernet or cross over?

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [August 2, 2012, 3:19pm UTC](https://forums.freertos.org/t/problem-web-server-cortex-stm32f107-gcc-rowle/936/3 "2012-08-02T15:19:07Z")

</div>

**[nicoooooooooo](https://sourceforge.net/u/nicoooooooooo/)** wrote on [Thursday, August 02, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/27c5f0e5/#0470):

(by the way, I am working with uip1.0)

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [August 2, 2012, 3:20pm UTC](https://forums.freertos.org/t/problem-web-server-cortex-stm32f107-gcc-rowle/936/4 "2012-08-02T15:20:34Z")

</div>

**[nicoooooooooo](https://sourceforge.net/u/nicoooooooooo/)** wrote on [Thursday, August 02, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/27c5f0e5/#e702):

Oh I’m sorry I hadn’t seen your reply. It is connected through a hub with a standard ethernet cable

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [August 2, 2012, 3:32pm UTC](https://forums.freertos.org/t/problem-web-server-cortex-stm32f107-gcc-rowle/936/5 "2012-08-02T15:32:04Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Thursday, August 02, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/27c5f0e5/#6466):

Have you configured a MAC address that is compatible with the computer from which the pings are originating?

Is the network initialising correctly?&nbsp; Put a break point on the line while( xEthInitialise() != pdPASS ) in webserver/uIP\_Task.c to see if the loop is ever exited.

If so, put a break point in the function vMAC\_ISR() in the file webserver/emac.c, is the break point ever hit?&nbsp;

If so, is data ever received in the handler?&nbsp; (if it is the line xSemaphoreGiveFromISR( xEMACSemaphore, &xHigherPriorityTaskWoken ); will be executed.

If so, is the line if( ( uip\_len \> 0 ) && ( uip\_buf != NULL ) ) ever passing in uIP\_Task.c so pass the received data into the uip stack?

Regards.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [August 3, 2012, 9:42am UTC](https://forums.freertos.org/t/problem-web-server-cortex-stm32f107-gcc-rowle/936/6 "2012-08-03T09:42:08Z")

</div>

**[nicoooooooooo](https://sourceforge.net/u/nicoooooooooo/)** wrote on [Friday, August 03, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/27c5f0e5/#dcc1):

Thank you very much for your help.  
Hmmm stupid question, how should the MAC address be configured?  
For the rest, yes, my network is initialising correctly and I am hitting all the breakpoints you mentionned…

---

<div class="post-metadata">

**Author:** ![rtel](https://d3iykfbgfh8zhg.cloudfront.net/user_avatar/forums.freertos.org/rtel/32/31_2.png) [@rtel](https://forums.freertos.org/u/rtel)\
**Post date:** [August 3, 2012, 9:55am UTC](https://forums.freertos.org/t/problem-web-server-cortex-stm32f107-gcc-rowle/936/7 "2012-08-03T09:55:16Z")

</div>

**[rtel](https://sourceforge.net/u/rtel/)** wrote on [Friday, August 03, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/27c5f0e5/#abd6):

In a real system the MAC address would come from ROM somewhere, as each has to be unique.&nbsp; In test systems the MAC address is just fixed in the C code, but still has to be unique on the network, so connecting two boards to the same network requires two separate configurations.

In your demo the MAC address is defined by the constants:

#define configMAC\_ADDR0 0x00  
#define configMAC\_ADDR1 0x12  
#define configMAC\_ADDR2 0x13  
#define configMAC\_ADDR3 0x10  
#define configMAC\_ADDR4 0x15  
#define configMAC\_ADDR5 0x11

which you will find in FreeRTOSConfig.h.

If data is being received, as it seems it is, the next thing to do would be to follow the packet through the uIP stack using the debugger to see if it gets dropped somewhere (in which case you will see why) or if it generated some output.

Do you have Wireshark connected so you can see the traffic going back and forth?

Regards.

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [August 6, 2012, 7:10am UTC](https://forums.freertos.org/t/problem-web-server-cortex-stm32f107-gcc-rowle/936/8 "2012-08-06T07:10:22Z")

</div>

**[nicoooooooooo](https://sourceforge.net/u/nicoooooooooo/)** wrote on [Monday, August 06, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/27c5f0e5/#353c):

Thank you again for your answer and apologize for the late. No I don’t have Wireshark, I will download it to see how it is!

---

<div class="post-metadata">

**Author:** ![system](https://d2v6vdsk2p900z.cloudfront.net/original/1X/7fc8fdb729c645aab5b20282bbe34e57cb407be6.jpeg) [@system](https://forums.freertos.org/u/system)\
**Post date:** [August 7, 2012, 10:17am UTC](https://forums.freertos.org/t/problem-web-server-cortex-stm32f107-gcc-rowle/936/9 "2012-08-07T10:17:44Z")

</div>

**[nicoooooooooo](https://sourceforge.net/u/nicoooooooooo/)** wrote on [Tuesday, August 07, 2012](https://sourceforge.net/p/freertos/discussion/382005/thread/27c5f0e5/#0e90):

ok now ping works but when I type the IP address in my browser, the index page doesn’t load… Any suggestion? (I checked the fsdata.c, httpd.c, everything is okay, when I debug and try to access the page in my browser, I reach “fs\_opent(file\_index\_html.name,&file)” so it should work…) Thank you
