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.
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:
- SEGGER J-Link, via RTT – see this section in the User manual.
- Network connection – see this section in the User Manual.
- USB serial connection (CDC), see this section in the User Manual.
- Using Arm ITM / SWO
- Streaming is also possible via a user-defined stream port.