c++cvxworksrtoswind-river-workbench

Linking DKM Projects to Kernel Image(VIP) project as a Sub project/Extra Module in VxWorks Workbench4


How to Link/Load DKM projects with Kernel Image(VIP) project so that i can call the Entry point function of DKM project(application) from Kernel Image project's "usrAppInit.c" to get the application started automatically at boot time? Could some one please describe steps or point me to any documentation?


Solution

    1. Add the DKM project as sub-project of your VIP. You can drag and drop, or open the VIP Project Properties, and from Project References check your DKM project
    2. In usrAppInit.c, call the entry point of your DKM. You will probably want to include the appropriate header
    3. Modify the VIP include paths as required to include the header file.
    4. If required, configure the kernel to use the correct build target for the DKM.

    Using this approach, when you build the VIP, it will first build the child DKM projects (which will generate the .out files) then the VIP, generating a vxworks image that includes the .out files