This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/DRV8701EVM: kwinject

Part Number: DRV8701EVM

Tool/software: Code Composer Studio

Hi,

I'm trying to modify the DRV8701EVM code but it cannot compile.

I'm getting the following error:

Cannot run program "kwinject": Launching failed

Error: Program "kwinject" not found in PATH

Any ideas?

Thanks,

Itay

  • Hello,
    More details would be helpful.

    What exact version of CCS are you using?
    What action did you do when the error occur?
    Can you provide screenshots of your CCS environment when the error occurs?

    Thanks
    ki
  • Hi Ki,

    I'm using CSS Version: 7.3.0.00019.
    It fails on Build.
    This is what I get on the console:


    **** Build of configuration Debug for project DRV8701EVM_FIRMWARE_v1.0 ****

    kwinject -u -o C:/Users/Itay-Home/workspace_v7/DRV8701EVM_FIRMWARE_v1.0/kwinject.out C:/ti/ccsv7/utils/bin/gmake -k all

    kwinject -u -o C:/Users/Itay-Home/workspace_v7/DRV8701EVM_FIRMWARE_v1.0/kwinject.out C:/ti/ccsv7/utils/bin/gmake -k all
    Cannot run program "kwinject": Launching failed

    Error: Program "kwinject" not found in PATH
    PATH=[C:\ti\ccsv7\ccs_base\common\bin;C:\ti\ccsv7\ccs_base\common\uscif;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Skype\Phone\;C:\Users\Itay-Home\AppData\Local\Microsoft\WindowsApps;]

    Error: Program "kwinject" is not found in PATH

    PATH=[C:\ti\ccsv7\ccs_base\common\bin;C:\ti\ccsv7\ccs_base\common\uscif;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Skype\Phone\;C:\Users\Itay-Home\AppData\Local\Microsoft\WindowsApps;]

    **** Build Finished ****

    Thanks,

    Itay
  • kwinject is some klocwork utility. Looks like this is some custom build environment and not a typical CCS one. And since you don't have path to the utility in your system path, it is complaining it cannot find it.
  • Hi Ki,

    I'm using the example from the DRV8701EVM page (slvc615).
    Isn't it suppose to work with CCS out of the box?

    Thanks,

    Itay
  • It depends on the example. Some examples have more dependencies than just CCS. What exact example are you referring to?
  • Hi,
    I'm using this link: www.ti.com/.../slvc615
    Thanks.
  • Itay Cohen67 said:
    I'm using the example from the DRV8701EVM page (slvc615).
    Isn't it suppose to work with CCS out of the box?

    Looking at the project properties for the DRV8701EVM_FIRMWARE_v1.0 shows that a custom build command has been specified which runs the Klocwork kwinject program.

    I don't use Klocwork, but think that kwinject is only required when your are using Klocwork to perform static analysis of the program.

    If you tick the "Use default build command" option on the project properties then the project can be built without requiring kwinject.

    The DRV8701 Evaluation Module User's Guide doesn't mention kwinject , and not sure why it was left in the build command for the DRV8701EVM_FIRMWARE_v1.0 project.

  • Hi,

    Great.

    Now I can debug.

    Many thanks,

    Itay Cohen