Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

Problem web server CORTEX_STM32F107_GCC_Rowle

Posted by nicooo on August 2, 2012
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", 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 :)

RE: Problem web server CORTEX_STM32F107_GCC_Rowle

Posted by Dave on August 2, 2012
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?

RE: Problem web server CORTEX_STM32F107_GCC_Rowle

Posted by nicooo on August 2, 2012
(by the way, I am working with uip1.0)

RE: Problem web server CORTEX_STM32F107_GCC_Rowle

Posted by nicooo on August 2, 2012
Oh I'm sorry I hadn't seen your reply. It is connected through a hub with a standard ethernet cable

RE: Problem web server CORTEX_STM32F107_GCC_Rowle

Posted by Richard on August 2, 2012
Have you configured a MAC address that is compatible with the computer from which the pings are originating?


Is the network initialising correctly? 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?

If so, is data ever received in the handler? (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.

RE: Problem web server CORTEX_STM32F107_GCC_Rowle

Posted by nicooo on August 3, 2012
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...

RE: Problem web server CORTEX_STM32F107_GCC_Rowle

Posted by Richard on August 3, 2012
In a real system the MAC address would come from ROM somewhere, as each has to be unique. 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_ADDR00x00
#define configMAC_ADDR10x12
#define configMAC_ADDR20x13
#define configMAC_ADDR30x10
#define configMAC_ADDR40x15
#define configMAC_ADDR50x11

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.

RE: Problem web server CORTEX_STM32F107_GCC_Rowle

Posted by nicooo on August 6, 2012
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!

RE: Problem web server CORTEX_STM32F107_GCC_Rowle

Posted by nicooo on August 7, 2012
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


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists