Including the Trace Recorder

Including the SystemView Trace Recorder Files

Beginning with v2.92.13, µC/OS-II includes the Trace Recorder code from SEGGER SystemView with support for ARM Cortex-M and Renesas RX devices (other CPUs can be ported on request).

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

The files in this folder can be described as follows:

(1) The configuration file template to configure the most typical application level settings.

(2) The interface between µC/OS-II instrumentation and SEGGER SystemView.

(3) The configuration file templates to configure the RTT channel and SystemView settings.

(4) The SystemView port for µC/OS-II.

(5) The configuration file template to configure platform related settings that are usually set once.

(6) The SystemView code that implements the trace recorder and the communication channel via RTT.

Note: In case you want to get the latest recorder code with potentially support for more CPUs, you can download the code directly from SEGGER at https://www.segger.com/systemview.html and extract the contents to the folder uCOS-II/Trace/SystemView/ThirdPartyLibrary

Configuring the Compiler's Include Paths

Configure your compiler with the following include paths:

$/Micrium/Software/uCOS-II/Trace/SystemView/Cfg/Template
$/Micrium/Software/uCOS-II/Trace/SystemView/Source
$/Micrium/Software/uCOS-II/Trace/SystemView/ThirdPartyLibrary/Config
$/Micrium/Software/uCOS-II/Trace/SystemView/ThirdPartyLibrary/SEGGER

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>                                                       

Next Step

Configuring the Trace Recorder