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.

Target configuration has become "incompatible with current target configuration"

Other Parts Discussed in Thread: MSP430G2231

I'm just starting out with CCS4 and the MSP430 Launchpad. I followed the "getting started" guidelines and ran the blinking LED project successfully. Then I imported the temperature sensor project slac435 and ran it successfully.

Then I tried to create a project from scratch and imported some C code. It failed to debug with the error: "Exception occurred during launch.Reason: Failed to initialize the Debug Server. Reason: The target configuration C:/Data/DEV/TI_MSP430/NJC UART TX/MSP430G2231.ccxml is not compatible with the current target configuration C:\Data\DEV\TI\MSP430\MSP-EXP430G2-Launchpad\MSP430F2010.ccxml"

I deleted all the failed launch configurations, and set the first LED blinking project (InitialTestProject) that had previously worked as the active project. When I try to debug it, it now fails with the error: "Exception occurred during launch.Reason: Failed to initialize the Debug Server. Reason: The target configuration C:/Data/DEV/TI_MSP430/InitialTestProject/MSP430G2231.ccxml is not compatible with the current target configuration C:\Data\DEV\TI\MSP430\MSP-EXP430G2-Launchpad\MSP430F2010.ccxml"

I deleted all the failed launch configuration again, and set the temperature sensor project (MSP-EXP430G2-Launchpad) that had previously worked to be active and tried to debug it. Now it has the same error: "Exception occurred during launch.Reason: Failed to initialize the Debug Server. Reason: The target configuration C:/Data/DEV/TI_MSP430/InitialTestProject/MSP430G2231.ccxml is not compatible with the current target configuration C:\Data\DEV\TI\MSP430\MSP-EXP430G2-Launchpad\MSP430F2010.ccxml"

I have verified in each project's Project Build Properties (CCS Build) that the Device Variant is set to MSP430G2231 (which is the device in the Launchpad target socket)

I'm assuming the use of forward slashes in one path and backslashes in the other path in the error message is just an Eclipse artifact, and is not relevant to the problem.

The odd thing is that in each error message for the three project, the "current target configuration" path is always pointing to the second project (the Temperature sensor project that I imported using "Project / Import Existing CCS/CCE Eclipse Project", but using a different target (the F2010). I have never specified an F2010, so I'm not sure where that is coming from.

What is going on? What is the source of the MSP430F2010.ccxml file that each project now thinks is the current target configuration?

Here's the C/C++ Projects view, showing that each project has MSP430G2231.ccxml as the active target configuration:

 

  • I found the document CCSv4_Tips_&_Tricks.pdf  which has some debug troubleshooting tips on the last page.

    After closing CCS, I deleted the .cache files in C:\Users\<me>\AppData\Local\.TI\361077933\0

    I also deleted the .cache file in the MSP-EXP430G2-Launchpad project folder.

    When re-starting CCS, I was able to debug the project again.

     

    I'd still like to understand what triggered the problem so I can avoid it in the future. It is probably something about the imported temperature sensor project, but the strange thing is that it worked OK until I tried to create a new project.

     

     

  • The Issue can be caused by sharing the Target configuration across projects. It is possible to set Target Configuration as Active/Default. Please check if all previous CCXML's can be deleted/moved from parent directory.(take a zip file backup and delete the origionals). Make sure that if you have created any unique project specific configurations that they are named unique files(not NewConfiguration.ccxml).

    Reset Ecxlipse perspectivies for Debug(noth Project and Non project Configuration).

    Clean and Close all Existing Projects and then Eclipse

    Delete the cache file in your C:/User/xxx (Vista) or C:/Documents and Settings files that are called .ccxml or .cache files as detailed in the tips and tricks document.

    Reopen Eclipse and delete any existing/referenced Debug Configurations.

    This should hopefully resolve issue.