How to clear Task Error

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

How to clear Task Error

ソリューションへジャンプ
1,062件の閲覧回数
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 解決策
837件の閲覧回数
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 返答(返信)
838件の閲覧回数
stefanhaase
Contributor II

Hi Bilz

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

Regards,

Stefan

0 件の賞賛
返信
837件の閲覧回数
Fabi
Contributor III

Hi Stefan,

Yes this works. TY

Regards,

Falko

0 件の賞賛
返信
837件の閲覧回数
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 件の賞賛
返信