MQX usage(stack %usage)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MQX usage(stack %usage)

1,769件の閲覧回数
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,024件の閲覧回数
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,024件の閲覧回数
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 件の賞賛
返信