Starting the TraceAlyzer Streaming Recorder

To start recording you need the host application,  TraceAlyzer for µC/OS-III,  which works with both the streaming and snapshot recorders. The tool can be downloaded from the following link: http://percepio.com/tz/

The host application will connect to the embedded target via an onboard or external J-Link and will stream all the trace data up to the PC.

Before starting the streaming process, open TraceAlyzer and click J-Link -> J-Link Settings and a dialog window similar to the one shown in Figure TraceAlyzer - J-Link Settings will be displayed. Make sure that you have confirmed the following settings:

Before streaming the data, TraceAlyzer makes an attempt to locate the symbol _SEGGER_RTT where the trace data is stored. You simply need to specify the memory base address where the buffer is located and the range to search.

Click J-Link -> Memory Region and in the dialog window similar to the one shown in Figure TraceAlyzer - Memory Region Settings make sure that the Start Address and the Bytes to Read fields are correct.

Finally, to start a recording click File -> Connect to Target System... and you will be presented with the dialog window shown in Figure TraceAlyzer - Streaming Status Window. At this point, assuming that the embedded application and µC/OS-III are running you can click the button Start Recording .

Recording Status

During the streaming process, you will be presented with a window similar to the one shown in Figure TraceAlyzer - Streaming Status Window.

The blue chart line represents the CPU load in the embedded target.

The counters in the section labeled Trace Session indicate the number of events being transferred and the number of events being dropped due to overflows in the communication.

Overflow events occur when the RTT buffer in the embedded target is full.

This can happen due to the following reasons:

To prevent this:

Further Reading

For additional and more detailed coverage of TraceAlyzer refer to the TraceAlyzer Documentation.