STACK

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

STACK

1,007 Views
zaccar
Contributor I

hello, I'm working M52259DEMOKIT evaluation board, I have a doubt regarding creation of tasks using the MQX 3.3 Operating System and codewarrior. How to calculate the stack size of the task that I perform?

 

TCP sockets can be programmed to the operating system for communication?, Where can I find information?

because I do a Java application on a computer, and that it must communicate with the evaluation board M52259DEMOKIT 

Labels (1)
0 Kudos
1 Reply

319 Views
tkvenki
Contributor III

I will try to answer the first part of your question.

 

1. Fill your stack with some known values ....say ..0xEF

2. Allocate maximum stack for your task

3. Run your task, for maximum stack coverage...make sure it performs it's best(worst case).

4. open the stack window and check how much 0xEF's are erased...

5. This will give you an idea of, how much stack is required, for your task..

 

Hope this helps

0 Kudos