FreeRTOS TRACE_FACILITY

Hi all,
I am trying to use trace facility of FreeRTOS.
please refer my configuration as below picture “FreeRTOSConfig.h”

Definition in main.c

 void RTOS_AppConfigureTimerForRuntimeStats(void)
 {
         RTOS_RunTimeCounter = 0;
 }

 uint32_t RTOS_AppGetRuntimeCounterValueFromISR(void)
 {
     return    RTOS_RunTimeCounter++;    /* increment runtime counter */
  //   return    RTOS_RunTimeCounter;
 }

vTaskGetRunTimeStats call as shown in below pic in one of the task which is executing with configured period.

Can you please tell me how to view all task statistics as explained inhttps://www.freertos.org/rtos-run-time-stats.html

Regards,
Kishor

The text is in cBuffer, which you can view or print out. If you want binary data then use RTOS - uxTaskGetSystemState() instead.

Also, your “get counter value” function is just incrementing a variable, whereas it should be returning the current count of a hardware timer, or at least a fast periodically incrementing variable.

Thank you for reply,
I have no idea how to convert this buffer in to readable format.

In the example it shows in much simple format as below

Can you please guide me how can I get the data as shown in example image?

Regards,
Kishor

Do you have printf? If yes, you can do printf("%s", cBuffer)?

Thank you very much for the reply I will check this option,
Regards,
Kishor

The printf does not work. The question remain same how can I get buffer of unsigned Char in to a format which shown in RTOS example with Abs and %Time?

Regards,
Kishor

Can you elaborate on “printf doesn’t work. If you call printf(“hello”) does hello print out? If not then it sounds like printf is not directing the output to wherever you want it to go, so you would need to fix that first.