How to clear Task Error

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

How to clear Task Error

跳至解决方案
1,102 次查看
Fabi
Contributor III

Hi all,

my application is based on MQX 4.2 and checks for a file at every boot up. However, the calling task will marked with "Task Error: ... Error Code: MFS: File not found (0x3002)..." if it not exists. This is the normal use case for my app.

I was wondering, how can I remove this error. In the API doc I have not found any function for this.

Regards.

标签 (1)
0 项奖励
回复
1 解答
877 次查看
stefanhaase
Contributor II

Hi Bilz

Did you considered to use _task_set_error(MQX_OK) directly after the fopen error happened?

Regards,

Stefan

在原帖中查看解决方案

0 项奖励
回复
3 回复数
878 次查看
stefanhaase
Contributor II

Hi Bilz

Did you considered to use _task_set_error(MQX_OK) directly after the fopen error happened?

Regards,

Stefan

0 项奖励
回复
877 次查看
Fabi
Contributor III

Hi Stefan,

Yes this works. TY

Regards,

Falko

0 项奖励
回复
877 次查看
Carlos_Musich
NXP Employee
NXP Employee

Hi Bilz,

you may identify the function in your application that is returning this error and handle the error on you own convenience. You will not be able to avoid the error. E.g.

uint32_t error:

error = function();

if (error == 0x3002)

{

     //handle error

}

Regards,

Carlos

0 项奖励
回复