About OS_eGetCurrentTask () function

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
技术社区计划将于12月21日至1月5日期间进行升级,升级期间暂时无法发布新问题。

About OS_eGetCurrentTask () function

1,741 次查看
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,654 次查看
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 项奖励
回复