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


LWIP Problem : Stops working after some time

Posted by vipin on May 31, 2007
I am using LWIP stack with FreeRTOS code on STR9. I am using V4.1.2 version of freeRTOS.

While using it I got a problem that the code gets stuck in the loop of function vListInsert()(present in list.c file) after ethernet working fine for 10 minutes.
I feel that it’s a problem of freeRTOS code.

After reading the details about this I came to know that :
1. vListInsert() function was optimized in the new version.
2. Algorithm has to be modified if control gets stuck in the loop of this function ( as mentioned in function comments)

Does any one has the idea about the function working and how to modify so as not to get this type of problem?

RE: LWIP Problem : Stops working after some time

Posted by Richard on May 31, 2007
This symptom is nearly always a caused by corruption of the data structures used by FreeRTOS.org, which in turn is nearly always caused by the stack of a task overflowing.

When the problem occurs, look at the free stack available to each task (the stacks are filled with 0xa5 when the task is created) to see if any have overflowed. You can also use the WEB server to show the stack high water mark of each task as per the lwIP demo included in the FreeRTOS.org download.


RE: LWIP Problem : Stops working after some time

Posted by vipin on June 25, 2007
Thanks for the answer.

I tried but I was not able to check the stack used by tasks. I increase the stack size (almost made it double) for each operating task but the problem persists. My understanding is that if the tasks have not proper stack then we will get DATA_Abort exception which is not coming in my case.

Moreover the program sometimes also stuck at idle task and keep on executing the task. Do you have any idea regrading this.

Some Request lost in TCP layer

Posted by vipin on June 26, 2007
I have webserver running on my board. I am requesting image (4500 bytes approx) from the board through webpage after every 200ms. Most of times (99%) its works fine but rest of the times the request from TCP layer doesn reach http layer. I am testing it in a very low traffic environment hence no chances for packet loss. Can anyone help me on this?

[ 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