About OS_eGetCurrentTask () function

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

About OS_eGetCurrentTask () function

1,151件の閲覧回数
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 件の賞賛
返信
1 返信

1,064件の閲覧回数
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 件の賞賛
返信