MQX usage(stack %usage)

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

MQX usage(stack %usage)

1,772 次查看
AHSun
Contributor I

Hi~

I use "stack usage summary" in MQX menu. And find that in different program file, even the same function (like:interrupt), also have different usage percent(%used).

Is there any regularity in it about how one function used?

(BTW: I want to know the detail message about the working MQX usage) Kindly help. Thanks.

 

Sun

0 项奖励
回复
2 回复数

1,027 次查看
JuroV
NXP Employee
NXP Employee
When creating a task, you must always specify the stack size, which should be allocated for your task. As task ist executing and running, it uses this stack. All you have to achieve is, that your stack will not overrun (to put it simply in other words: the usage will be more than 100%). To get involved to the stack functionality in the task, use http://en.wikipedia.org/wiki/Call_stack.
0 项奖励
回复

1,027 次查看
MQXuser
Contributor III

I am no exactly sure about what is your question. If it is what I understand this is my answer:

 

I believe the stack usage is dynamic. That means that you can have different stack usage % at any

different times.

0 项奖励
回复