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.

MSP430FR5994: Disable clean-only build in CCS

Part Number: MSP430FR5994

Dear all,

I'm using CCS version 11.2 to develop code for the MSP430FR5994. I'm using different build targets which are calling a self-made build script. Basically it would work, but I'm using separate targets for generating the make files and to compile the application itself and CCS somehow adds a clean command in front of each build target. So when I generate the make files, this doesn't matter, but when I want to compile the application, all the make files I generated before are cleaned and the application won't build.

In the console, CCS outputs **** Clean-only build of configuration Debug for project xxx ****. Is there a way to disable this clean-only build in CCS? I couldn't find anything in the build properties.

Thanks and best regards,

Marco

  • Hi Marco,

    I don't get yout issue, could you add more details here? If there are some screenshot will be better.

    Thanks!

    Best Regards

    Johnson

  • Hi Johnson,

    Thanks for your reply. I'll try to explain it in more details, but unfortunately, I'm not able to add a screenshot. Under "Insert/Image" I can only add an URL but not a local file. And using the snipping tool and press CTRL + V does nothing. Do I miss something? I tried it on Firefox and Microsoft Edge.

    Under project properties/Build/Builder I modified the Build command to be "bash ${ProjDirPath}/scripts/build.sh", where the build.sh is a self-made script which is also used by the a build server for automatic building and continuous integration. This script supports different commands, like "build.sh clean", "build.sh cmake", "build.sh application" and several others, where each command executes a specific task only. So the clean command obviously cleans the project output folder by just deleting everything. The cmake command generates all the makefiles using CMake and a CmakeLists.txt. The application command then builds the application using the generated makefiles. So far so good.

    Then I created some "Build Targets" within CCS. They appear in the project explorer and can be used to build different targets, namely to run the script with the specific commands like cmake or application. But when I run one of those build targets CCS automatically runs the clean command first for each build target and I don't know why. So when I run the application build target, everything gets deleted in front including the generated makefiles that I created previously using the cmake command end the application can't be built. The console output would look like this:


    **** Clean-only build of configuration Debug for project Prj ****

    bash D:/Projects/Prj /SW/Prj/scripts/build.sh clean
     
    Script path: /cygdrive/d/Projects/Prj/SW/Prj/scripts
    ==== Project path: /cygdrive/d/Projects/Prj/SW/Prj
     
    ==== Building Project - Server; Wed Sep 28 13:16:17 WEDT 2022 =======================================
     
    ==== Cleaning up and delete /cygdrive/d/Projects/Prj/SW/Prj/build/Debug/test
     
    ==== Cleaning up and delete /cygdrive/d/Projects/Prj/SW/Prj/build/Debug/main/DevKit
     
    ==== Cleaning up /cygdrive/d/Projects/Prj/SW/Prj/reports
     

    **** Build Finished ****

    **** Build of configuration Debug for project Prj ****

    bash D:/Projects/Prj/SW/Prj/scripts/build.sh application

    I want CCS to only call the second command line "bash D:/Projects/Prj /SW/Prj/scripts/build.sh application", but it automatically runs the first line "bash D:/Projects/Prj /SW//Prj/scripts/build.sh clean" as well and everything gets erased just before the build starts. Then there is an error because there are no makefiles. Is there a way to disable this? Why does CCS do that?

    Hope this makes it more clear and looking forward for you answer.

    Marco

  • I still couldn't find a solution for the problem explain above. Does anybody have any input?

  • In the editor, there is insert image for the screenshots.

    In any case, you might have more luck on the CCS forum:

    https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum

  • Hi Marco,

    I assume you are working with standard non-managed CDT makefile projects and not CCS managed make ones.

    Can you attach your project so that I can take a closer look?

    Thanks

    ki

**Attention** This is a public forum