Forum Discussion
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 ...
Altera_Forum
Honored Contributor
21 years agoI've never tried changing it. I don't think it's meant as a 'user' variable. I would absolutely recommend you left it at four, and just remember that "OS_STK my_stack[4000]" will give you 16Kb of stack.
- Roddy