Important: This HowTo shows the possibility of building the source SDK (this will NOT work for all examples even in EVAL packages).
Requirements
- Unified Automation SDK with vxWorks platform
- CMake (> 2.8.0)
- vxWorks + WindRiver Workbench
- FileZilla
- First of all it is necessary to compile the SDK for vxWorks. To do so, just create a new CMake project for "Eclipse CDT4 - Unix Makefiles" with the vxWorks CMake toolchainfile.
- Do not forget to set the SDK_PLATFORM and the STACK_PLATFORM Variable to vxworks.
- IMPORTANT NOTE: It is not possible to build shared objects for vxWorks (Downloadable Kernel Module), so please uncheck the option "BUILD_SHARED_STACK".
- Import the generated project into the vxWorks Workbench:
- Start the Workbench
- On "Project Explorer" right click and select "Import"
- Select "General->Existing Projects into Workspace"
- On "Select root directory" browse to your generated CMake project folder and press "OK" and "Finish"
- Build the SDK (you also can build it via "Wind River Workbench Development Shell" by entering "make")
- Choose the Kernel project in the Project Explorer and do a right click on it.
- Select the option "Properties", navigate to "Build Properties" and select the tab "Variables".
- On the Variables tab there is a module called "EXTRA_MODULES". Edit this line and insert the path with the name of the compiled server into it.
Code: Select all
EXTRA_MODULES $(SUB_TARGETS) C:/path/to/your/sdk/bld/folder/uaservercd
- !!! DO NOT FORGET TO SET "/" INSTEAD OF "\ for the path !!!"
- Press "OK" and rebuild the Kernel project.
- If the Kernel has compiled a file called "sysc3.sys" will occure
- Start FileZilla and connect to the target.
- Select the file "sysc3.sys" and copy it via FileZilla to the corect place on the target.
- Reboot the target so the new Kernel can start up.
- After the Kernel has started up, start the server via its main function. You can see the server starting up.
- Use UaExpert to connect to the target.