Tracealyzer 4 provides over 30 views of the run-time behavior, including task scheduling and interrupt handler/ISR execution, task timing (execution time and other metrics), task priority, CPU load, memory usage, as well as interactions between tasks and interrupt handlers/ISRs via e.g., message queue, semaphore and mutex objects. This way, you can see if your task priorities, execution times and timeouts are suitable, to avoid timeout errors from task preemption or blocking. For example, perhaps the USB task must be allowed to preempt the TCP/IP task, to reduce its response time and avoid a semaphore timeout? Perhaps some mutex is used by many tasks, and thereby frequently block the execution and cause delays?
You can also do custom logging of “User Events” from your application code to see states and variables over time, in parallel with the other views. This can be used to analyze and debug the real-time behavior of your algorithms, such as motor control loops. Both the software logic itself, and its performance. For instance, how much execution time is needed? Can I run my control loop at a higher rate? Is the task timing steady?
The profiling views allows you to see what parts of the system that uses most resources (e.g. processor time and heap memory). Perhaps some part is using much more CPU cycles than motivated, due to inefficient code? The memory usage views also allow you to locate possible memory leaks. You can filter out all “malloc” events that have matching “free” events using the “Show remaining only” option, showing all events that could be a memory leak.
All views are interconnected in clever ways, so you can click on a data point in one view and see the corresponding location in another related view. Moreover, all timeline views can be synchronized, so you can scroll and zoom them side-by-side. This way, you can benefit from multiple perspectives at the same time and better understand the trace.
The trace can be streamed in real-time, either using a supported debug probe or by using a custom target-host interface, such as a USB or TCP/IP. So far, this is supported for FreeRTOS, Micrium and SAFERTOS, but additional streaming support is planned.
No special trace hardware is required, as Tracealyzer relies on efficient software instrumentation with minimal overhead. This way, it works on essentially any processor or microcontroller, assuming you have a few kilobytes available for the trace recorder module. It is designed for 32-bit target processors and upwards, including ARM Cortex-M MCUs such as STMicroelectronics STM32, NXP LPC and Kinetis series, Renesas Synergy, Silicon labs EFM32, Cypress PSoC, Atmel SAM, TI MSP432, TI TMC4 and Infineon XMC4. We also support Renesas RX, Renesas RZ, Microchip PIC32, Atmel AVR32, ARM Cortex-R, ARM Cortex-A, Xilinx Zynq, Xilinx Microblaze, Altera Nios II and Synopsys ARC processors. And even if your processor family is not yet directly supported, you can easily develop your own port. You just need to define a few macros, mainly for reading the current time.
You can even use it in deployed IoT systems via Percepio DevAlert, to become aware of customer errors and get traces for remote diagnostics.
Several leading IDEs are explicitly supported, such as IAR Embedded Workbench, Keil µVision (MDK), Atmel Studio, Microchip MPLAB X IDE, Wind River Workbench, and most Eclipse-based IDEs (e.g. STM32CubeIDE, SW4STM32, Code Composer Studio (TI CCS), NXP LPCxpresso/MCUxpresso etc.).
Tracealyzer can be used with any IDE, as long as you can save RAM contents to a host-side file (.bin or .hex) or have a target-host interface available for streaming the trace data to host. Note that the Keil RTX5 version requires Keil µVision (Keil MDK) version 5.23 or newer for the data access.
Unlike some other trace tools, multiple RTOS and Linux platforms are supported, including FreeRTOS, SAFERTOS, Micrium µC/OS, Azure RTOS ThreadX, Keil RTX5 and VxWorks. So if you later decide to change platform, there is a good chance you can keep using Tracealyzer.
Download now and try the included demo trace to explore the broad range of visualizations.
To learn more about practical use of software tracing, check out the Getting Started page with videos and example cases.
Read our white paper to learn more about embedded software tracing in general.