Altera_Forum
Honored Contributor
21 years agolwIP, uCOSII and task priority ranges
Came over this while trying to figure out why object "sys_stack" occupied half my RAM size in the .elf.
In sys_arch.h: # define LWIP_MAX_TASKS OS_LOWEST_PRIO /* Number of LwIP tasks */# define LWIP_START_PRIO 0 /* Defined the lowest LwIP task priority */# define LWIP_STACK_SIZE 2048 /* Stack size for LwIP tasks */ /* Note: Task priorities, LWIP_START_PRIO through (LWIP_START_PRIO+LWIP_MAX_TASKS-1) must be reserved for LwIP and must not used by other applications outside. */ In sys_arch.c: OS_STK sys_stack[LWIP_MAX_TASKS][LWIP_STACK_SIZE]; So, this explains my big sys_stack, since I have set OS_LOWEST_PRIO to 63. My question now, however, is: If you reserve the range 0 to OS_LOWEST_PRIO for lwIP tasks, is there any prios left for other tasks? Presumption: OS_LOWEST_PRIO = highest number any task can have for priority. Frode, Norway