Meaning of error code in MQX 3.8.1

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

Meaning of error code in MQX 3.8.1

ソリューションへジャンプ
891件の閲覧回数
kappa74
Contributor IV

Good morning,

I use micro MCF5225 with MQX3.8.1 compiled by CW10.2. I implemented in my application a task and I checked the error of this task with the following instruction:

ErrPassTsk= _task_get_error();

The value is sometimes 0x00020000 (=131072), sometimes 0x00000051, sometimes 0x40000C00.

I don't find their meanings in file mqx.h.

Which is the meanings of these errors?

Where I found in the documentation the meanings of these codes?

Thank you

Mirko

タグ(4)
0 件の賞賛
1 解決策
479件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Basically, error codes are defined in mqx.h.  Each task has an error code associated with the task's context. For example, rtcs error code is in rtcs.h,  MFS error code is in mfs.h.

Regarding your error codes, it seems strange, maybe related to stack size. I recommend you increase the stack size from 1000 to 2000 or more, according to the function of the task.

元の投稿で解決策を見る

0 件の賞賛
3 返答(返信)
479件の閲覧回数
kappa74
Contributor IV

Thank you Daniel,

it seems that there is a stack problem because I have increase the stack and the problem seems solved.

Thank you.

0 件の賞賛
480件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Basically, error codes are defined in mqx.h.  Each task has an error code associated with the task's context. For example, rtcs error code is in rtcs.h,  MFS error code is in mfs.h.

Regarding your error codes, it seems strange, maybe related to stack size. I recommend you increase the stack size from 1000 to 2000 or more, according to the function of the task.

0 件の賞賛
479件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Your error code seems strange.If adding stack size still not solve this issue, can you provide more info about your project to help us to duplicate this issue? Thank you

0 件の賞賛