lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] tcp/ip task - stack size


From: FreeRTOS Info
Subject: Re: [lwip-users] tcp/ip task - stack size
Date: Sun, 13 Nov 2011 07:52:53 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0

On 13/11/2011 06:41, Martin Velek wrote:
> Hi,
> 
> I am using lwip 1.4.0 on the ARM7(32bit) platform with FreeRTOS and
> NO_SYS = 0. There is a parameter to setup stack size of the core lwip
> task inside lwip header. Has anyone experienced with the smallest
> possible size (in bytes) to save memory? I mean the worst case
> scenario when all relevant options are enabled. I do not include user
> callbacks called from tcp/ip context.

You can do this experimentally by viewing the high water mark of the
consumed stack, then adjusting as necessary.  If you overflow the stack,
that can be trapped.

See:
http://www.freertos.org/uxTaskGetStackHighWaterMark.html
http://www.freertos.org/Stacks-and-stack-overflow-checking.html

If you have a way of viewing the output you can also use:
http://www.freertos.org/a00021.html#vTaskList

If you are using IAR, some Keil versions, or Eclipse, then the kernel
aware plug in will also show you the stack high water mark.


Regards,
Richard.

+ http://www.FreeRTOS.org
Designed for Microcontrollers.
More than 7000 downloads per month.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]