paraparvy wrote on Wednesday, July 06, 2016:
Hi All,
I am teaching myself FreeRTOS…so far so good with most of the functionality with your kind help and the excellent online documentaion.
At the moment I am having some diffiulty in undesrstanding how to use the trace macros.
To start with I want to see a task being switched in and out.
For this exercise I have created a simple task that just prints a character to IO (using simulator mode in MPLAB x)
I couldnt find much documentation (or dont know where to look) on how to use the trace macros…namely traceTASK_SWITCHED_IN() and traceTASK_SWITCHED_OUT() to start with
This is the task that i want to see being moved in and out of the running state:
static void vPrintTask( void pvParameters )
{
while(1)
{
printf(".");
vTaskDelay(100/portTICKRATEMS);
}
}
How do i associate vPrintTask with the said trace macros?
Could someone help in starting me off please?
Cheers