FreeRTOS Launches Free Visualization Tool

Author | strongerHuang

WeChat Official Account | strongerHuangStrictly speaking, it should be the tracking and visualization analysis (debugging) tool based on FreeRTOS launched by Percepio:Percepio View for FreeRTOS.FreeRTOS Launches Free Visualization ToolTo help developers better understand the task execution status of FreeRTOS, it is necessary to use tools for task analysis.A tool we are quite familiar with is:Tracealyzer, which many of you may know. The tool we are discussing today is related toTracealyzer.

AboutPercepio View

Percepio View for FreeRTOS is abbreviated asPercepio View.

It is a visualization free tool based on Percepio Tracealyzer, designed to help you check task execution, debug RTOS-related issues, and it works by reading trace data using a debug connection, in conjunction with traditional debugging tools (such as J-Link).

FreeRTOS Launches Free Visualization ToolYou can think of Percepio View as the “lite version” of Percepio Tracealyzer.The main difference between them lies in functionality, with one being paid and the other free.FreeRTOS Launches Free Visualization ToolBy comparison, you will find that Tracealyzer has much more powerful features than Percepio View. If conditions allow, it is still advisable to purchase the Tracealyzer tool (of course, it can also be trialed)..Since Tracealyzer is a paid tool, the tool discussed today is a free tool.Here you can refer to the official announcement:https://www.freertos.org/Documentation/03-Libraries/02-FreeRTOS-plus/05-FreeRTOS_plus_Trace/01-Percepio_View#how-it-works

How to Use Percepio View

The usage of Percepio View is similar to that of Percepio Tracealyzer.

First, download and install the Percepio View tool.

For example, the download link for Windows is:

https://download.tracealyzer.io/PercepioViewForFreeRTOS-4.10.3-windows64.exe

After installation, find theTraceRecorder folder in the installation directory and add it to your project.

FreeRTOS Launches Free Visualization Tool

The main files areTraceRecorder/*.c and TraceRecorder/streamports/RingBuffer/trcStreamPort.c.

Also, the folder structure needs to be configured for the project (added to the project)

TraceRecorder/include

TraceRecorder/config

TraceRecorder/streamports/RingBuffer/include

TraceRecorder/streamports/RingBuffer/config

Again, ensure thatconfiguse_trace_facity is set to 1 in FreeRTOSCo. Include the files. Set according to the development environment, for example, in the IAR environment:

#ifndef __iasmarm__     #include "trcrecorder.h" #endif

In your project, you also need to add initialization code and call the corresponding API function interfaces. Additionally, you need to configure your host environment.Of course, the specific details will not be described here; interested readers can refer to the official documentation.

Leave a Comment