declaring vTaskSetApplicationTaskTag

ose wrote on Wednesday, April 25, 2018:

Hey,
i am trying to use the vTaskApplicationTaskTag (just like in the example in the link below) but it seems not to be recognised though i have followd the instructions here https://www.freertos.org/vTaskSetApplicationTag.html . I keep getting the error that it has not been declared.
Please what could be the problem?

richard_damon wrote on Wednesday, April 25, 2018:

You need to have a define for configUSE_APPLICATION_TASK_TAG 1 in your FreeRTOSConfig.h file

ose wrote on Wednesday, April 25, 2018:

yeah, that i did already.

rtel wrote on Wednesday, April 25, 2018:

Can you please post the error message. Thanks.

ose wrote on Saturday, April 28, 2018:

Sorry for the late reply. I was able to fix it. Thanks

andrefeliciano wrote on Sunday, May 27, 2018:

How did you fix it?

andrefeliciano wrote on Sunday, May 27, 2018:

in my case it gives the following error:

undefined reference to ‘vTaskSetApplicationTaskTag’

I typed :

vTaskSetApplicationTaskTag (NULL, (void *) 1);

“configUSE_APPLICATION_TASK_TAG” is set to 1.

but the error continues.

andrefeliciano wrote on Sunday, May 27, 2018:

I have little experience with FreeRTOS and the Eclipse IDE. Should not have a “task.c” in conjunction with “task.h” ??