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.

CCSv4.1.3: What is relationship between Active and Default Target Configuration

Recently I've been working on a number of different target boards, all with unique Target Configurations.  I ran into a problem trying to debug a C5515 eZdsp project.  I kept getting emulation error when I tried to open a Debug session.  I have a Target Configuration for the C5515 eZdsp that is located in the User Defined folder.  I linked this target configuration to the C5515 project.  What I finally realized was that when I started a Debug session, CCSv4 was trying to use the Default Target Configuration rather than the configuration associated with my project.  The Default configuration was for a different target board.

I am confused on the relationship between Active and Default Target Configurations.  I was under the impression that Default would only be used if there was no Active configuration.  In my case it seems like I had to make my C5515 Target Configuration both Active and Default in order to successfully start a debug session.  Why would that be necessary?  Is it required that a Default Target Configuration defined?  I think I would rather not have one because I have been bitten by this more than once.

Regards.

  • Hi Tommy,

    Active configurations is used by project debug session, it can only be set within a project. When a debug session is launch, the debugger will use the active configuration to setup the target. If there is no active configuration in the project, than the default configuration will be use.

    For a project less debug session (Launch TI Debugger), it will use the default configuration.

    It is not required to have a default configuration to start a project debug session if there is one active configuration in th project. Unless there is a bug, I'll need a test case to reproduce this issue to be able to file a bug report.

    I hope this help.
    Patrick

  • Patrick,

    I am 95% sure I had project Target Configuration set as Active.  If that is the case should Default Target Configuration have run when I selected Debug Active Project in C/C++ mode?

    Thanks.

  • If active is set in the project, default shouldn't be use when you select Debug Active Project.

    Regards,
    Patrick

  • Patrick,

    I tried to recreate the problem and couldn't.  I must not have had an Active Target Configuration set.   Shouldn't Active Project cause related Target Configuration to become Active?

    Regards.

  • "Shouldn't Active Project cause related Target Configuration to become Active?" - I am not sure what you mean, can you elaborate?

    You can have multiple ccxml files within a project and set different ccxml file to be active depended on your need, i.e simulation vs emulation, different connections, etc...

    I don't think it is possible to figure out what connection, simualtion, emulation, the user wants to debug.

    Regards,
    Patrick

  • I think I am having a similar problem. When I select Project/Launch TI Debugger I  get a window with "No default configuration is specified..." I have created  a new configuration but it is never used? How do I make a configuration default?

    I can debug when I select Project/ Debug Active Project but this builds the entire project, a process I do not want to happen 

    Windows 7 

    CCS 4.2.1.0004

    Paul

  • Hi Paul,

    Paul said:
    How do I make a configuration default?

    Right-click on the project in the C/C++ Projects view and in the context menu select 'Active Build Configuration-><configuration>'  to make that configuration the default.

    Paul said:
    I can debug when I select Project/ Debug Active Project but this builds the entire project, a process I do not want to happen 

    This should only build everything if changes were made to the project. But to avoid a build completely, use 'Launch TI Debugger' or right-click on a target configuration in the Target Configurations view and select 'Launch Selected Configuration' in the context menu. This will launch the debugger without trying to build. You can then manually load your program.

    Thanks

    ki

  • I'm running into a related issue.  I have a project that has two different target configuration files associated with it.  One is marked "[Default]", the other is marked "[Active]".  The one that's marked "Active" is not valid for my current setup but not even to save my life can I find where in the software to switch the other configuration to "Active".

    I'm biting my tongue trying not to complain about this software but it's very very frustrating..any help is appreciated.  Thanks!

    Jeff

  • Meh..  I right-clicked on the Configuration .ccxml file in the project tree and now I see that it has the two "Set as default../Set as active.." options.  I swear I didn't see that before but I'm probably just suffering from sleep deprivation.

    Jeff

  • Jeff,

    If you right-click on the configuration, do the options below show up? If not, try to do a reset on the perspective (menu Window --> Reset Perspective) and see if they come back.

    Hope this helps,

    Rafael