Download PDF version Click here:
1. Unpack the package
Unzip the package to a special directory. For example, extremedb_4.5_fusion_vxworks.6.8_dkm_PPC32e500v2gnu_sql_log_eval.ziptoc:\McObject\vxworks\extremedb_4.5_fusion_vxworks.6.8_dkm_PPC32e500v2gnu_sql_log_eval\
If having no package, please download evaluationpackages here:
2. Creating the Project for the VxWorks Simulator
1. | Select File > New > Wind River Workbench Project. The Wind River Workbench New Project wizard appears. |
2. | For the Target operating system, select WorkbenchVxWorks 6.x, and then click Next. |
3. | For the Build type, select Downloadable Kernel Module, and then click Next. |
4. | In the Project name field, type the project name:for example : here, Perf08. |
5. |
| The default active build spec is for the VxWorks simulator, so you do not have to adjust any other settings. |
6. |
3. Importing Source Files Into Your Project
1. | Right-click the project folder, then select Import. The Import wizard appears. |
2. | Double-click General, then select File system, then click Next. The File system page of the Import wizard appears. |
3. | Click the Browse button next to the From directory field. The Import from directory page appears. |
4. Config theproject
1) Build support and specs for simulator:
2) Add the include path in to the build path like:
-IC:/McObject/vxworks/extremedb_4.5_fusion_vxworks.6.8_dkm_PPC32e500v2gnu_sql_log_eval/include
-IC:/McObject/vxworks/extremedb_4.5_fusion_vxworks.6.8_dkm_PPC32e500v2gnu_sql_log_eval/samples/core/common
3) There is some build Macro addition for items LIBS,like this for 08-perf:-lmcolib-lmcovtdsk -lmcosvxn -lmcomconv -lmcofvx -lmcotmursiw -lmcouwrt
4) Libraries should add new lib path like : -LC:/McObject/vxworks/extremedb_4.5_fusion_vxworks.6.8_dkm_PPC32e500v2gnu_sql_log_eval/target/bin/SIMNTgnu
5. Build theproject
To build the perf08 project, dothe following:
1. | In the Project Explorer right-click the perf08 folder and select Build Project. |
2. | Click Continue if asked if you want Workbench to generate include paths. |
6. To connect to the target, do the following:
2. Choose Connect `vxsim0'.
A VxWorkssimulator shell opens inside the Target Console view that appears in thelower-right corner of the Workbench window, in the tabbed notebook. Theconnection details appear in the Remote Systems view.
NOTE: The Target Console is onlyavailable for VxWorks 6.8. Older versions of VxWorks will open an externalwindow to display the console. You can minimize the shell, but do not close it.
(Optional) To view the propertiesof kernel tasks or real time processes (RTPs), in the Remote Systems view,expand the target connection node to see the contents of the Kernel Tasks andReal Time Processes folders. Right-click a task or process, and select Show inProperties.
The Properties view appears, showing a list ofassociated properties and values.
7. To start the perf08 application using VxWorks, do the following:
1. |
2. | Right-click perf08.out in the Project Explorer and select Debug VxWorks Kernel Task. |
| The Debug Configurations dialog appears, with perf08.out already filled in as part of the name of the launch. |
3. |
4. |
8. Setting Up the Device Debug Perspective
The action of the perf08 program is displayed by viewing the memory address of the grid global variable in the Memory Browser. |
NOTE: You can also use the Memory view for this example; seeWind River Workbench User's Guide: Building and Debugging a Sample Project for those instructions. |
1. | If the Memory Browser is not already open, select Window > Show View > Other > Debug > Memory Browser, then click OK. |
| The Memory Browser appears in the lower-right corner of the Workbench window, in the tabbed notebook with the Variables and Expressions views. |
| b. |
|
| c. |
The right half of the Device Debug perspective now appears approximately as shown: |
|