Event Recorder and Component Viewer
Version 1.5.1
MDK Debugger Views for Status and Event Information
|
A Software Component Viewer Description (*.SCVD) file in SCVD File Format (XML) defines the content that is displayed in the Component Viewer and Event Recorder. In addition, using the Event Recorder API, you can annotate your code so that you can get statistical data on the time spent in a loop or on the energy consumption (ULINKplus required).
The debugger can load multiple *.SCVD files as typically each software component has an individual description file.
The Component Viewer reads specific memory locations from the target hardware using a standard debug unit (for example a ULINK debug adapter) that is connected via JTAG or SWD to the CoreSight Debug Access Port (DAP). The address of these memory locations is typically defined by symbols that represent variables, arrays, or starting point of linked lists. The *.SCVD file specifies these symbols and customizes the formatting in the Component Viewer window of the debugger.
Benefits of the Component Viewer:
The software component Event Recorder provides an API (function calls) for event annotations in the application code or software component libraries. These API functions record event timing and data information while the program is executing. The Event Filter which is controlled from the target application or the debugger allows to specify the event ids that are stored in the event buffer that is located in the memory of the target system. This event buffer may be continuously read by the debug unit and displayed in the Event Recorder window of the debugger.
During program execution, the debugger reads the content of the event buffer using a standard debug unit (for example a ULINK debug adapter) that is connected via JTAG or SWD to the CoreSight Debug Access Port (DAP). The Event Recorder requires no trace hardware and can be therefore used on any Cortex-M processor.
Using Event Recorder explains formatting in the Event Recorder debug window of the event data information that is obtained via event annotations in the user application.
Benefits of the Event Recorder:
The Event Execution Statistics functions allow you to collect and statistical data about the code execution. Any debug adapter can be used to record execution timing and number of calls for annotated code sections:
Energy profiling is of annotated code sections is possible using ULINKplus. When combined with power measurement, the Event Statistics window displays the energy consumption of the code section with min/man/average values:
Benefits of Event Statistics:
For more information, refer to Using Event Statistics.