MQX usage(stack %usage)

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

MQX usage(stack %usage)

1,248 Views
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 Kudos
Reply
2 Replies

503 Views
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 Kudos
Reply

503 Views
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 Kudos
Reply