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.

Trouble creating a debug session with MPS430 LaunchPad

Other Parts Discussed in Thread: MSP430G2231

Hi, I´m having some similar trouble when debugging my codes. At first I debugged, loaded and ran the examples code on the LaunchPad without any trouble at all. But then I created a new project and after fixing some code mistakes, I tried to debug it, but some "MSP430: Trouble Writing Memory Block at 0xf800 on Page 0 of Length 0x4e: Could not write device memory. Cannot write to target" error came in. Then I tried to reload some examples on the LaunchPad, but some other error stating that it failed to initialize the Debug Server appeared. The reason of this, according to the little error screen that appeared was that the MSP430G2231.ccxml of the project I created was not compatible with the MSP430G2231.ccxml of the last project that was succesfully loaded and executed on the LaunchPad. I believe I messed up at some point while creating the new project or so. What am I doing wrong here? Thank you.

  • There is an error I have seen that happens when the device listed in the ccxml file is different than what is actually connected.  Is there just 1 ccxml file in your project?  If there is more than one you may have accidentally switched the processor type in the project properties, in which case CCS generates a new ccxml file to match the selection.  You could right click on your project.  Select Build Properties, then click on CCS Build on the left.  There now should be a couple of drop down boxes beside Device Variant on the right.  In the second one select the exact device you are using.

    If you only have one ccxml file I would still go and check that setting to make sure it is correct.  

    Regards,

    John