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/TM4C1294NCPDT: Unable to turn off "exclude from build" on files in the project...

Part Number: TM4C1294NCPDT

Tool/software: Code Composer Studio

Boy, do I get the strange ones-

I have some source files in a project that have somehow (I don't remember doing it) gotten the 'Exclude from Build' option turned on.

To this point, I have not been able to figure how to re-enable those files.  I can click all day on the 'Exclude from Build' option in the pulldown menu and things don't change.  I can open the build settings menu and the option is grayed out.  Is there some kind of magic I'm not seeing?

I create a new file, and it gets the 'Exclude from build' setting turned on, and I still can't turn it off.

This is with CCS 8.1

  • Hi David,
    Note that some files are intentionally auto excluded by CCS. One example is with some auto-generated files by TI-RTOS. Is the issue you are seeing with your own source or generated files? A screenshot of the file in Project Explorer would help clarify also.

    Thanks
    ki
  •  Here you go-

    I can't turn of the Exclude option on these files

  • Can you do the following:

    Modify the Project Explorer filter to show .* files.To do this, go to the following menu item:

    Then in the dialog that appears, make sure the highlighted option is NOT enabled:

    Hit OK and then in the 'src' folder, check to see if there is a file called .exclude:

    Thanks

    ki

  •  Yes, there was a .exclude file there.  I deleted it, and now I get a different error.

    My .cfg file is listed as 'Exclude from build', and I can't turn that off.  I'm sure it's probably as simple a problem, but...

  • Note that your project is a TI-RTOS project. TI-RTOS projects will create an 'src' folder and place generated files in there. This folder is auto-excluded from the build via the .exclude file. This folder is excluded from the build since the contents of the folder are not meant to be part of the build. Otherwise build errors can occur. Are you placing your own source file in a 'src' subfolder also?
  • Yes, I had my sources in a src directory. I moved them to a new directory I created.
    However, that didn't alter the problem.
    I deleted the .cfg file from it's location, and created a new one at the top level for the project. Is there some specific location those should be placed (since 'src' isn't for my source)?
  • Besides the 'src' folder and the folders for the build configurations (like 'Debug'), you can have it anywhere. I typically see the cfg file at the top level in the project folder.

    Are you still having build errors after moving it to the top level?