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.

Help compiling a new project

Other Parts Discussed in Thread: CONTROLSUITE

Hi,

 

I had a working project that was originally built by modifying and adding to an example project from controlSUITE.  The only way I could get the project to open and compile was by opening it from controlSUITE.

Now I want to create a new project independent of the original controlSUITE example and I'm having problems.

I've added all of the required files to the project but I'm getting a ton of unresolved symbol errors related to the include files I added that reside in the controlSUITE directories.

 

 

For example:
unresolved symbol _AdcRegs, first referenced in ./HandheldMain.obj AllClear line 0 1299537434846 217
AdcRegs is a structure defined in the DSP2833x_Adc.h file that exists in the controlSUITE directory.  I added this file to the project and it is included.  Why am I getting the error as though the DSP2833x_Adc.h file isn't part of the build?
I can't figure this out.  Any help is greatly appreciated.
Thanks

 

  • Jason Reinhart said:

    I've added all of the required files to the project but I'm getting a ton of unresolved symbol errors related to the include files I added that reside in the controlSUITE directories.


    When you created a new project, did you "add" all the source and header files to the project by selecting "Add Files to Project"?   

    ControlSUITE uses a very specific file structure for source, include and linker command files, and the example projects within ControlSUITE already have paths set up to pick up files from appropriate locations, and macros set up such that importing these projects automatically sets up paths as well.  If you create a new project and add files to project, there will be additional/different include paths and other options you may need to set up to get a project that builds without errors.

    What I would recommend instead, is to create a working copy of ControlSUITE folders (or only the sub-folders within ControlSUITE that are relevant to your development) , modify this working copy as needed, and import that project into your workspace.

  • Hi,

     

    I tried your recommendation.  I copied the original folder along with the folders that with the include files and pasted them in a new location.  I then tried importing project from the copied files.  The project imported and the folders with the includes shows up in the C/C++ window but none of the include files from these folders show up and I get "could not open source file" errors.  

     

    I'm still stuck.

  • Which project from ControlSUITE did you try importing? I can go through the same process and see if I run into similar issues.

  • adc_soc for an F28335

     

    Thanks

  • I just installed the latest version of ControlSUITE 1.9.2, imported the adc_soc project for F28335 and it built fine.

    Did you make sure to not check the box for "copy projects to workspace" when importing the project? If you do check the box, then the build will fail because paths are set up to work only if the project resides in its original location.