I am new user of FreeRTOS, so may be my question can stupid, sorry!
I have try to use vTaskSetApplicationTaskTag as a point to control when my task start/stop.
I will mark the start and end of the task time by switching the level on the port. by watching on the logic analyzer i can control the time used by the task
Dear Aggard, it is compiled but not work as it neccesary…
Tag is not set in TCB, after
vTaskSetApplicationTaskTag( NULL, ( void * ) 3 );
pxTaskTag still set as zero
I think you try to follow the FreeRTOS trace macros example. Ok.
You should check the return code of xTaskCreate. Maybe the calls failed ?
Also did you enable stack checking and properly defined configASSERT for development ?
I’d recommend to do so.
You are likely trying to observe a stack variable after the function has returned - which is not valid. Call the xTaskGetApplicationTaskTag and check the return value.