Getting Started with Tracealyzer on STM32

Percepio Tracealyzer is the leading solution for visual trace diagnostics for STM32 software. It lets you record a timeline of your RTOS tasks, API calls and custom logging and explore the data visually, using 30+ interactive and interconnected views.

Tracealyzer relies on a trace recorder software library, that automatically records events from the RTOS kernel. It also allows for logging your own events in the application code, such as variable values and states, much like a printf but 100x faster. No extra tracing hardware is required.

Most STM32 projects created with STM32CubeIDE uses FreeRTOS, via the CMSIS-RTOS API. For instance, osKernelStart() is a wrapper for the FreeRTOS function vTaskStartScheduler(). This guide is for FreeRTOS users, but Tracealyzer supports several leading RTOSes including ThreadX and Zephyr.

To get started with Tracealyzer , the first step is to sign up for a free evaluation license. This also provides the download link.

To integrate the trace recorder library in your project, follow the getting started guide corresponding to your RTOS.

We also provide a plugin for STM32CubeIDE that makes it easy to save snapshot traces via the debugger and open them in Tracealyzer.

Tracealyzer also supports continuous trace streaming that allows for recording very long traces and with live visualization. Trace streaming is supported in many ways and can be customized to use any host-target interface you might have available. To get started, see the below guides:

Stay informed.
Sign up for our newsletter.