How to clear Task Error

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

How to clear Task Error

Jump to solution
889 Views
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.

Labels (1)
0 Kudos
1 Solution
664 Views
stefanhaase
Contributor II

Hi Bilz

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

Regards,

Stefan

View solution in original post

0 Kudos
3 Replies
665 Views
stefanhaase
Contributor II

Hi Bilz

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

Regards,

Stefan

0 Kudos
664 Views
Fabi
Contributor III

Hi Stefan,

Yes this works. TY

Regards,

Falko

0 Kudos
664 Views
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 Kudos