About OS_eGetCurrentTask () function

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

About OS_eGetCurrentTask () function

1,208 Views
liuxiang
Contributor I

I tested OS_eGetCurrentTask () function, the code is shown in figure111.png

print this information "btn_scan_tasktask handle = 0x0400070c",

But I check DimmableLight_JN5168_DR1175_LED_EXP_MONO.map file, shown in figure:

2222.png

Why in the map file address and print out the handle information is inconsistent, in JN1189, OS_ERROR () print the task handle, I see the task handle, how can quickly determine which task is a mistake? Is it looking from the .map file? Is there any other way? Thank you.

0 Kudos
Reply
1 Reply

1,121 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Liu Xiang,

The Jennic Operating System (JenOS) is responsible to manage the task that you are define.

The value that you are getting is located in RAM, in other words the OS take this memory execution; for that reason, the values do not correspond to the ones you are expecting to see.

A simple way to determinate a task error is by using the API OS_ERROR ().

Best Regards,

Mario

0 Kudos
Reply