Operations | Monitoring | ITSM | DevOps | Cloud

Percepio

The Microscope for Embedded Code: How Tracealyzer Revealed Our Bug

Tracealyzer. You can’t stay in the wonderful world of debugging and profiling code without hearing the name. If you look at Percepio’s website, it is compared to the oscilloscopes of embedded code. Use it to peek deep inside your code and see what it does. Of course, the code receives an interrupt and checks a CRC before sending the data through SPI, but how does it do it? And how long does it take?

Efficiently Tracing Zephyr Syscalls

Using Tracealyzer to view applications running on Zephyr RTOS comes with a special challenge: unlike some other microcontroller-oriented real-time operating systems, Zephyr exposes its kernel services via a syscall layer. A syscall is essentially a way to programmatically communicate with the operating system kernel from user level code.

Tracealyzer 4.8 Is Out

Tracealyzer version 4.8 has just been released, with major optimizations and improvements for Zephyr RTOS, and support for 64-bit target processors (FreeRTOS, Zephyr and SafeRTOS only). In addition, the ESP32 support is upgraded to use the latest TraceRecorder library, supporting all recent versions of ESP-IDF up to v5.2 dev. Snapshot tracing is now primarily supported by the implementation for streaming mode, using the RingBuffer stream port.

Tracealyzer 4.8 is coming in June

Tracealyzer version 4.8 will be released in the first week of June, with major optimizations and improvements for Zephyr RTOS, and support for 64-bit target processors (FreeRTOS, Zephyr and SafeRTOS only). In addition, the ESP32 support is upgraded to use the latest TraceRecorder library, supporting all recent versions of ESP-IDF up to v5.2 dev. Snapshot tracing is now primarily supported by the implementation for streaming mode, using the RingBuffer stream port.

RTOS Tracing, your way

When debugging an RTOS-based system, tracing can often give a better understanding of the real-time behavior of your system. Percepio Tracealyzer supports two main types of RTOS tracing, snapshot and streaming, both offering the same powerful visualization although streaming allows for collecting longer traces. The Percepio trace recorder offers several options to allow developers to adjust the tracing setup to fit their target system and their analysis needs.

Tracealyzer On the Race Track - Calgary Solar Car

With only a week to go before the start of the 2022 American Solar Challenge (ASC), here’s a good luck shout out to the University of Calgary Solar Car team! Their race car, the Schulich Elysia, not only looks stunning, it also packs a powerful solar battery that can store up to 18 kWh of energy, enough to drive the car over 300 km when there’s no sunlight. Percepio is immensely proud that our Tracealyzer tool has been involved in perfecting this battery technology.