I suspect I am running low on stack space in a Mod5441x project, and need some help accessing OSDumpTasks and OSDumpTCBStacks. They are not in C:\nburn\lib\MOD5441x.a or DBMOD5441x.a (filesinspected with emacs). The declarations in my ucos.h are grayed out, looks like UCOS_STACKCHECK is not defined. When I force the issue by copying the declarations to my project's main.cpp, the linker can't find the functions.
We run on everything from a single chip with 32k of ram, to a larger platform like the 5441x with 64MB of ram. The default stack size if 8k. You can change that in constants.h (tools 2.x). Or, if you create a task, you can specify any value you wish. Alternatively, if you are declaring something large, like a buffer, you can make it static so it goes in the global space.
Hi Tom, I can see the declared stack sizes, and have changed a bunch of on-stack arrays to static. None were bigger than 64 bytes. I suppose I could declare a new task with a nice big stack for all my UserMain stuff. But this is supposed to be a high reliability system. Now that I think I have seen a problem, I want to be able to inspect stack usage at runtime. So maybe I should have asked "is it some kind of mistake that OSDumpTask and OSDumpTCBStacks are left out of the 5441x libraries and what do I have to do to get access to those functions?"