STACK

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

STACK

1,436 次查看
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 

标签 (1)
标记 (1)
0 项奖励
回复
1 回复

748 次查看
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 项奖励
回复