VxSim Simulator


Wind River supplies a simulator, VxSim, that is very useful in early stages of application development. The simulator is an application that runs on the PC but (in most aspects) behaves exactly as the target. This is a VERY neat thing to have in the early stages of development as it dramatically cuts development time.

The default VxWorks installation comes with a default simulator, but it is recommended to build one yourself with the configuration you need

Creating a simulator

In concept, the simulator is rather like an image and is created the same way a VxWorks Image is . The only real difference is that you specify the Board Support Package under "Project Setup" to be "simpc".

Configuring and building a simulator

The simulator is configured and built in exactly the same way as a VxWorks Image

Running a simulator

To run a simulator, highlight it in the Target Manager and click "Connect". If this is the first time the simulator is used, follow this procedure:
  1. Click "Create a New Target Connection" in the Target Manager.
  2. "Connection Type": Select "Wind River 6.x Simulator Connection"
  3. "VxWorks Boot Parameters": Select "Custom Simulator" and browse to the simulator file you have created (always named "vxworks"). Click Finish (or Next if you wish to configure the simulator further - mostly unnecessary)

The simulator is now started and a connection is established.

Building applications for the simulator

Right-click the application project you wish to simulate, select "Build options" > Set active build spec" and select SIMNTdiab. If the "SIMNTdiab build" spec was not included as build spec when the DKM project was created, it can be included under the projects Properties > Build Specs. Then build the project.

Running an application in the simulator

Running an application is done in exactly the same way as for applications: Download it (to the simulator) and execute the application from the simulator's shell.

Graphical applications

Graphical applications, i.e., applications that use the WR Media Library, can also be executed in the simulator. In this case, a new window is opened with the graphical contents. To do this, the WR Media Library project must be built for SIMNTdiab in exactly the same way as stated for applications above. Note that the simulator project naturally must include Media Library support in it configuration to support this.