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: