Including TraceAlyzer (Streaming Mode)

Including the TraceAlyzer Streaming Recorder Files

Beginning with v3.06.00, µC/OS-III includes the Trace Recorder code from Percepio's TraceAlyzer.

To include this Trace recorder in your project simply include the entire TraceAlyzerStreaming  folder as illustrated in the image on the right hand side.

The files in this folder can be described as follows:

(1) The interface between µC/OS-III instrumentation and TraceAlyzer.

(2) The TraceAlyzer code that implements the trace recorder for µC/OS-III.

(3) The configuration file template to configure the TraceAlyzer trace recorder.

(4) The code that implements the RTT channel to stream the trace data and its configuration templates.

Note: In case you want to get the latest recorder code with potentially support for more CPUs, you can download the code directly from Percepio at http://percepio.com/tz/ and extract the contents to the folder uCOS-III/Trace/TraceAlyzerStreaming/ThirdPartyLibrary

Configuring the Compiler's Include Paths

Configure your compiler with the following include paths:

$/Micrium/Software/uCOS-III/Trace/TraceAlyzerStreaming/Source
$/Micrium/Software/uCOS-III/Trace/TraceAlyzerStreaming/ThirdPartyLibrary
$/Micrium/Software/uCOS-III/Trace/TraceAlyzerStreaming/ThirdPartyLibrary/ConfigurationTemplate
$/Micrium/Software/uCOS-III/Trace/TraceAlyzerStreaming/ThirdPartyLibrary/SEGGER/RTT

Including header files

From the application level code where you intend to initialize the Trace Recorder insert the following line of code:

#include  <os_trace.h>                                                       

Configuring other Compiler Settings

Make sure that your C compiler supports the C99 standard and Variable-Length-Arrays (VLA).

Next Step

Configuring TraceAlyzer (Streaming Mode)