I tested OS_eGetCurrentTask () function, the code is shown in figure
print this information "btn_scan_tasktask handle = 0x0400070c",
But I check DimmableLight_JN5168_DR1175_LED_EXP_MONO.map file, shown in figure:
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.
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