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

lwip and multiple threads

Posted by Eddie on July 18, 2006
Hello,

I'm using the lwip demo on rowley with the at91sam7x and experience that when using multiple threads the webserver dies. Does anyone have the same experince and is this solveable?


RE: lwip and multiple threads

Posted by Nobody/Anonymous on July 18, 2006
What do you mean by uses multiple threads? The demo uses multiple tasks which could be considered multiple threads depending on your definition, and that works fine.

If you are just wanting to use more tasks then you may just need to increase the heap size.


RE: lwip and multiple threads

Posted by Eddie on July 18, 2006
Yes that's true. But that is nog what I mean.

I mean requesting the website with multiple threads.

RE: lwip and multiple threads

Posted by Richard on July 18, 2006
So you open more than one browser at a time and use each browser to connect to the server?

When I first wrote the demo I tested it using two different PC's. Each had one Internet Explorer and one FireFox broswer making HTTP requests, plus one (or maybe two?) command prompts pinging large packets - all simultaneously. I left it to run in this configuration for 30 hours or so.

Regards.

RE: lwip and multiple threads

Posted by Eddie on July 19, 2006
Well if we use opera that gets a page with multiple threads it will crash after a few minutes
when using auto refresh.

We use a program that makes requests in multiple threds which can be set at the command prompt. with threads >2 it wil crash in 5 to 6 minutes.

We use the j-tag debugger to see where the crash occures and that is in tcpip.c:

In the case switch (msg->type) it goes to
case TCPIP_MSG_INPUT:

witch ends op in ip.c in the switch switch (IPH_PROTO(iphdr)) and finaly in the case
default. where we get:
LWIP_DEBUGF(IP_DEBUG | 2, ("Unsupported transport protocol %"U16_F"\n", IPH_PROTO(iphdr)));

So somewhere along the transmits get corrupted or so. Anyone seen the same problems?

RE: lwip and multiple threads

Posted by Nobody/Anonymous on July 19, 2006
Which version of lwIP are you using? It looks like 1.1.1 is the latest as far as I can see from http://savannah.nongnu.org/projects/lwip.

RE: lwip and multiple threads

Posted by Nobody/Anonymous on July 19, 2006
It might be worth asking the question on the lwIP users mailing list. You should get an expert answer there.

RE: lwip and multiple threads

Posted by Eddie on July 20, 2006
Yes we've been posting there to, but maybe sombody here ran into simular problems as we noticed that there are more people developing on the same board and with the same source.

We updated to 1.1.1 this was the first comment made by the lwip maillinglist.
Maybe there are some modifications we didn't make
don't know if there need to be


[ 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