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.

ccsv6.01.00040: clean project not working

Guru 20075 points

Hello,

Neither the menu item "Project->clean project" nor "clean project" from the right click context menu is working.

Shouldn't either one of these two remove the contents of the release/debug directory?

Stephen

  • "Clean Project" deletes the .obj, .pp and .out files in the active configuration folder, but does not delete the makefiles and .map files.

    http://processors.wiki.ti.com/index.php/Projects_and_Build_Handbook_for_CCS#Build.2FRebuild_project

  • Its not deleting the .obj,.pp or .out files.

    Also,  the "clean project" menu item (not the context menu item) is currently greyed out.

  • stevenh said:
    Its not deleting the .obj,.pp or .out files.

    Is this only for certain project(s) in the workspace or all projects? You could try cleaning the workspace or importing the project into a new workspace to see if that helps. If it does not help and the issue is project specific, could you send us all the project metadata files (.*project) and makefiles in the \Debug folder for us to take a look at?

  • I'm not sure why this is happening, but maybe try taking a closer look at the makefile for that project. There should be a rule for what "clean" should do in terms of deleting files. Maybe that will give some clues.

  • I analyzed the makefile clean rule and it looks correct.

    When I select the clean in the right click context menu, "Rebuild" shows up at the bottom of the CCS window.

    I created another project and clean works with it, so it seems to be an issue with this project.  However, it's quite strange that clean menu item is grayed out.  Also, it's strange "Rebuild" is showing up at the bottom of the CCS window.

  • I was able to perform a clean from the command line using gmake and the project makefile.  However, the issue with CCSv6 not performing a clean still remains.

  • stevenh said:
    I was able to perform a clean from the command line using gmake and the project makefile.  However, the issue with CCSv6 not performing a clean still remains.

    Glad you were able to do the clean from command line.

    I think we would need a reproducible test case to analyze the issue with clean not working with CCSv6. Are you able to share that specific project? You can send it via private message if you prefer.

  • From Aarti:

    "I observed that under Project Properies->Build, Behavior tab, the Workbench Build Behavior has the "Clean" option unchecked. I believe this is causing the behavior you are seeing. Could you enable that box and verify if the "Clean Project" operation works as expected?

    Regards,
    Aarti"

    That works,

    Thanks

    Stephen