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
已解决! 转到解答。
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.
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.