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.


_______________________________________________
lwip-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to