J-Link SWO Analyzer: Difference between revisions

From SEGGER Knowledge Base
Jump to navigation Jump to search
No edit summary
(Removed H1 (only one allowed per page and that is defined by the title already!))
 
Line 8: Line 8:
<br clear=all>
<br clear=all>


= Usage =
== Usage ==
To use the SWO Analyzer, it has to be called like the following:
To use the SWO Analyzer, it has to be called like the following:
  SWOAnalyzer.exe <SWOfile>
  SWOAnalyzer.exe <SWOfile>
This can be achieved by simply dragging the SWO output file created by the J-Link DLL onto the executable.
This can be achieved by simply dragging the SWO output file created by the J-Link DLL onto the executable.


= Creating an SWO output file =
== Creating an SWO output file ==
In order to create the SWO output file, which is the input file for the SWO Analyzer, the J-Link config file needs to be modified.
In order to create the SWO output file, which is the input file for the SWO Analyzer, the J-Link config file needs to be modified.
It should contain the following lines:
It should contain the following lines:

Latest revision as of 10:49, 12 December 2024

J-Link RTT Viewer

The SWO Analyzer (SWOAnalyzer.exe) is a command line tool that can be downloaded as part of the J-Link Software and Documentation Pack. It analyzes SWO output provided by a SWO output file. Status and summary of the analysis are output to standard out, the details of the analysis are stored in a file.


Usage

To use the SWO Analyzer, it has to be called like the following:

SWOAnalyzer.exe <SWOfile>

This can be achieved by simply dragging the SWO output file created by the J-Link DLL onto the executable.

Creating an SWO output file

In order to create the SWO output file, which is the input file for the SWO Analyzer, the J-Link config file needs to be modified. It should contain the following lines:

[SWO]
SWOLogFile="<SWOFile>"

Where <SWOFile> is the desired output location.
Note: If <SWOFile>'s path or the SWO Analyzer's log file path are write protected, the user would have to call the SWOAnalyzer/the DLL application with elevated permissions.