![]() |
Using the µVision Socket Interface
Application Note 198
Control and monitor µVision via the built-in TCP/IP interface
|
The UVSOCK interface can be used directly, although this is recommended only for cases where the Client Interface (UVSC) cannot be used, for example, when the client runs on an operating system other than Microsoft Windows.
The UVSOCK reference is avaialble in UVSOCK Interface (UVSOCK.h). Refer also to UVSOCK Messaging. Predefined data types are described in UVSOCK Data Types.
Follow these steps when working with UVSOCK:
All possible operations are listed in UV_OPERATION.
A.) Configure the TCP server port directly in uVision:
B.) Alternatively, configure the TCP server port manually:
Example
Configuring a project is the process of opening a uVision project and adding files to project groups. Complex configuration of a project is possible via the uVision IDE. To configure a project:
Building a project is the process of compiling and assembling source files, and linking the resultant object files to create an executable image. To build a project:
Debugging a project is the process of monitoring program execution. There are several methods of debugging:
Inspect the application state when execution has been halted. Follow these steps for static debugging:
Inspect the application state while the target is executing. Follow these steps for real-time debugging:
To communicate with the target via a serial interface, use any UART or the Real-Time Agent Terminal in simulation or target mode:
To exit debugging mode:
Event Recorder shows the dynamic behavior of software components that helps you to analyze the internal operation. Using the UVSOCK interface, it is possible to gain access to the Event Recorder data:
The interface will answer with these responses to the requests: