MyComponent  Version 1.0.0
Example that demonstrates Software Component Views in the MDK Debugger
 All Data Structures Functions Variables Groups Pages
Overview

The software component MyComponent is a simple example project that shows the usage of the software component views available in the Keil MDK. Using the methods exemplified in this project, the MDK debugger can:

  • Display status information derived from static variables in the component.
  • Show events that occur during operation of the component.

MyComponent implements a data transfer using the functions MyComp_initialize, MyComp_send, and MyComp_receive. During operation, the component calls event functions that provide event data for recording by the Event Recorder.

MyComponent.png
MyComponent program structure

By utilizing the related *.SVCD file for MyComponent, the MDK Debugger displays the execution status (derived from static variables) and event information (derived from recorded events) as shown below. As software components are frequently a "black box" to the application programmer, this type of information is a great help during development.

MyComponentStatusAndEvents.png
Execution Status and Event Information

For more information, refer to the Event Recorder documentation.

This documentation is the user view of MyComponent. Refer to Event Recorder - Example Projects - MyComponent for details about generating event annotations and *.SVCD files for a software component.