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.

CODECOMPOSER: New Target Config/Debug Config not building project before running

Part Number: CODECOMPOSER


Tool/software:

Hello,

I created a new target config/debug config for a project and can get it to connect/debug correctly, but noticed it doesn't perform the build/check prior to connecting like the default target configuration does. So if the code is updated but not built and a new debug session is started the target configuration will use the out-of-date ".out" file instead of building the new one. Can you tell me if there is a setting I must enable in order to force a build/check prior to launching a debug session.

Thanks,
Jason

  • Hi Jason,

    I assume you are referring to the functionality where for a project debug, it will (should) auto-trigger an incremental build before launching a debug session.

    How did you create a new target config? Manually? And inside the project? And it replaced the old one or do you have multiple of them with one set to "Active"?

    What exact CCS version is being used?

    Thanks

    ki

  • where for a project debug, it will (should) auto-trigger an incremental build before launching a debug session.

    Correct

    And inside the project? And it replaced the old one or do you have multiple of them with one set to "Active"?

    I have multiple target configurations for a single project and I set the one I want to use as "Active"

    CCS  Version: 12.6.0.00008 

    To create the debug configuration I manually create a new debug under "Debug Configurations", link the target configuration on the main tab and input 

    ${build_artifact:My_Project} on the Program tab. I then run that debug configuration


  • To create the debug configuration I manually create a new debug under "Debug Configurations", link the target configuration on the main tab and input 

    ${build_artifact:My_Project} on the Program tab. I then run that debug configuration

    Can you try completely deleting all existing debug configurations for the project and then launch a debug session (which will cause a new debug config to get generated) and see if the incremental build is triggered?

  • The default target configuration/ default debug configuration still does the incremental build. The new target configuration/ new debug configuration, which have the same settings as far as I can tell, don't do the incremental build. This is why I figured there is just some setting buried somewhere that I am missing.

    Jason

  • Hello, 

    I got it to work. On the program tab in debug the project needed to be pointed to my workspace in addition to the program being set to

    ${build_artifact:My_Project