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 v4.2.4 Linked Resource (System Macro?) not taking effect

Other Parts Discussed in Thread: CONTROLSUITE

I am using the Control Suite DRV8312-C2-KIT_v128 InstaSPIN_BLDC project. When I look at the project properties -> C/C++ Build -> Macros there is a System Macro (show parent context macros is checked) CONTROLSUITE_DRV830x_ROOT set to C:\. I need it set to C:\ti\controlSUITE\. When I look in Window-> Prefernces -> General -> Workspace -> Linked Resources I see CONTROLSUITE_DRV830x_ROOT set to C:\. So I changed it to C:\ti\controlSUITE\ but when I look back at the first location I looked it is still C:\!!! I tried restarting CCS. Do I need to reboot the PC? Is this variable set somewhere else?

Thanks in advance for you help.

  • Hi Donald,

    did you try changing it under Window-Preferences->General->Workspace->Linked resources? 

    THe place you were looking is for build variables.  Linked resources use path variables.

    Please give that a try and keep us informed.

    Best Regards,

    Lisa

  • Hi Lisa, thank you for your quick reply.

    "did you try changing it under Window-Preferences->General->Workspace->Linked resources? " That is exactly what I did. I was only looking at the build information (where the CONTROLSUITE_DRV830x_ROOT variable is used) to see if it took affect. When I actually build I see a line

    -include_path="C://development_kits/~SupportFiles/F2803x_headers" which corresponds to the line in the C/C++ Build -> Tool Settings -> Include Options "${CONTROLSUITE_DRV830x_ROOT}\development_kits\~SupportFiles\F2803x_headers"

    You can see here that CONTROLSUITE_DRV830x_ROOT = C:/ where it should be C:/ti/ControlSuite

  • Hi Donald,

    I would like to see if I can reproduce this here to point you to the right steps to correct this.

    - are you trying to use a ControlSuite example?  Which one?

    - How have you imported/created the project?  If you imported an example, did you make sure that you do not select "Copy Project into Workspace"?

    - have you tried upgrading to 4.2.5?

    Please keep us informed.

    Best Regards,

    Lisa

  • Donald DeFord said:

    That is exactly what I did. I was only looking at the build information (where the CONTROLSUITE_DRV830x_ROOT variable is used) to see if it took affect. When I actually build I see a line

    -include_path="C://development_kits/~SupportFiles/F2803x_headers" which corresponds to the line in the C/C++ Build -> Tool Settings -> Include Options "${CONTROLSUITE_DRV830x_ROOT}\development_kits\~SupportFiles\F2803x_headers"

    You can see here that CONTROLSUITE_DRV830x_ROOT = C:/ where it should be C:/ti/ControlSuite

    Donald,

    You should set it in 2 places. One is under Window->Preferences->General->Workspace->Linked Resources and the other is under Window->Preferences->C/C++->Managed Build->Macros tab. After you edit it under Managed Build, you should see it take effect in your Project Properties->C/C++ Build->Macros tab.

    Let us know if this does not help.

  • I was able to redownload the kit project and get it to build in the original directory.

  • Hi Donald,

    great, glad to hear you are up and running.  Thanks for the update and all the best with development.

    Best Regards,

    Lisa