Including TraceAlyzer (Snapshot Mode)

Including the TraceAlyzer Snapshot 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 TraceAlyzerSnapshot  folder as illustrated in the image below.

The files in this folder can be described as follows:

(1) The configuration file templates to configure the optional triggering mechanism via µC/Probe.

(2) The header file os_trace_events.h is the interface between µC/OS-III instrumentation and TraceAlyzer and the files os_trace_trig.c/h are the ones that implement the optional triggering mechanism via µC/Probe.

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

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

(5) The TraceAlyzer header files that implement the trace recorder for µC/OS-III.

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 from http://percepio.com/tz/ and extract the contents to the folder uCOS-III/Trace/TraceAlyzerSnapshot/ThirdPartyLibrary

Configuring the Compiler's Include Paths

Configure your compiler with the following include paths:

$/Micrium/Software/uCOS-III/Trace/TraceAlyzerSnapshot/Cfg/Template
$/Micrium/Software/uCOS-III/Trace/TraceAlyzerSnapshot/Source
$/Micrium/Software/uCOS-III/Trace/TraceAlyzerSnapshot/ThirdPartyLibrary/Include
$/Micrium/Software/uCOS-III/Trace/TraceAlyzerSnapshot/ThirdPartyLibrary/ConfigurationTemplate

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 (Snapshot Mode)