TraceAlyzer running on CMSIS-RTOSv2 / FreeRTOS v10.2.1

Hello,

I’m using an STM32MP157A board running CMSIS-RTOSv2 / FreeRTOS v10.2.1 on the Cortex-M4. I could successfuly build and execute my project, I also got traces that I could use. However, in the trace’s graphs I only see the Idle task and the TzCtrl task.

Both my example tasks (defaultTask and secondTask) are not seen although they appear as index and I verified that they worked by doing printf inside them.

My question is, is TraceAlyzer compatible with FreeRTOS running CMSIS-RTOSv2 and if yes, why my tasks do not appear in the graphs ?

You are recording trace to a ringbuffer in RAM. In you screenshot it looks like the ringbuffer contains the trace data of ~150ms. I would assume that the tasks default and second did not execute in those 150ms.
You have a few options:

  1. Increase the ringbuffer size if you have RAM available, check trcSnapshotConfig.h

  2. Decrease the amount of trace data generated, for example disable tracing of osstick or enable scheduling only. You find both these configurations in trcConfig.h

1 Like