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

后端 未结 2 811
生来不讨喜
生来不讨喜 2021-01-27 00:10

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\

相关标签:
2条回答
  • 2021-01-27 00:39
    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

    0 讨论(0)
  • 2021-01-27 00:45

    An other solution to this problem without having the projects clubbed, Need to specify the DKM application's partial image ".o" object file path to the EXTRA_MODULES Macro rather than ".out" path. If for example the application is "myApp" , "myapp_partialImage.o" path should be specified in the Macro. Multiple paths can be specified in the Macro with the space if Multiple app needs to be linked

    0 讨论(0)
提交回复
热议问题