Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Starting the TraceAlyzer Snapshot Recorder

To start recording you need to call the macro TRACE_START() from your application code. the code listing below shows an example where the trace recording is started on the main function right after initializing the trace module: 

To analyze a 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/

...

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 read a recording click J-Link -> Read Trace (Snapshot) and you will be presented with the main window that displays the timeline.

 

Further Reading

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