Altera_Forum
Honored Contributor
21 years agoNIOSII uCOSII Stack - 2 bytes wide, or 4?
I have just started with some of the examples. The ported uCOS-II code seems to indicate in many places that only a 16bit stack is needed. I am assuming this is incorrect as my programs always crash with 16bit stack. Currently OS_STK is defined as int and sizeof(int) is reporting as 4 bytes.
Also some of the LWIP tasks are using over 75% of there stack while running idle (no HTTP comms in the comms example etc.). What are the recommended sizes to avoid overflow?