Hello, I use RTX166 on my system (20 tasks). How can i check Task Stack busy level to prevent a possible stack overflow? Operating system manual say: "Register R0 is stack pointer" I will check Run-time R0 value to find max value. but I think is much better to use a Source Code Analyzer like: http://www.absint.com/stackanalyzer but it doesn't work with Keil. Can you suggest me a stack analyzer for my system? Best Regards
Use the online manual: http://www.keil.com/support/man/docs/tr166/tr166_stackmgmt.htm Having looked at the page myself, I am not sure now that the technique I suggested can be used effectively with this kind of stack management. With all those stacks shrinking and expanding and moving around there is a good chance of all of the stack area being overwritten even with plenty of stack space to spare. Or maybe I'm missing something... - mike
I'm using RTX-166 Full, not tiny My manual is RTX-166 Real-Time Multitasking Executive for the 166/167 Microcontroller Family User's Guide 2.2000