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.

CCS/MSP430G2553: CCS Crashing

Part Number: MSP430G2553

Tool/software: Code Composer Studio

Hello,

I am having a severe problem with CCS that has been installed on my work PC and working fine for over 2 years.  The problem started yesterday.  After the firmware is loaded into my target MCU, CCS crashes and shuts down before I can run the code.  This is a real problem because I can’t step through my code to debug it.  However,  it seems to compile the code and program the MCU correctly.  I have included the dump file that was generated by CCS for the crash report. The forum won't let me upload a .dmp file so I renamed it to a .txt file. Rename it back to a .dmp file to read the dump. 

I am using CCS Version 6 and would rather not change the version I am using.

I have tried the following:

  • Created a new project (manually copied over .c and .h files only)
  • Created a new workspace and project (manually copied over .c and .h files only)
  • Used multiple target PCBs

 CCS has a hard crash, the screen will format changes to debug for <1s before crashing. There is no popup or error. Looking at the task manager it says CCS is still running 15-20s after the crash and I am unable to load a new instance of CCS while it is still running even though it has crashed. The code seems to compile, load, and run on the MCU but it won't let me debug.

The timing for this is really bad as I have a project deadline this week and really need to get this issue resolved today.

Thank you!

Best,

Adamce0a4992-e88a-4020-aaed-fd6079f068e4.txt

  • Adam,

    I will ask the debug experts to have a look at the crash dump. A debug server log would also be helpful, but before spending the time to capture that, let us consider a few options due to your tight deadline. 

    First option is to try to isolate further which step is triggering the crash with this specific version of CCS. Btw, which exact version of CCSv6 is this?

    Adam Daluga said:
    After the firmware is loaded into my target MCU, CCS crashes and shuts down before I can run the code. 

    Do you see the program load bar progressing and completing? Does CCS crash after program load completes? Does the device halt at all at any point after program load or does CCS crash immediately after load?

    Going down this path may help us identify the root of the problem and perhaps a potential workaround, however there will be no bug fixes made to this older version of CCS.

    Another option would be to update to a newer version of CCS (perhaps even just a newer version of CCSv6) but keep the compiler version the same as your current build. This way you can generate the same build output but use the newer CCS version (which hopefully will not demonstrate the same crash) to debug.

  • I found the problem! It had to do with the way I was declaring a union and/or a struct.  I don't know which one yet as I changed them both and it started working.  I don't have time to go deeper into it at the moment but I do want to follow-up when I have a little more time. There were no errors associated with the way they were previously being declared so I had no idea where to begin.  However, trial and error saved the day.

    To answer your questions...

    1. Version 6.2.0.00050

    2. Do you see the program load bar progressing and completing? Yes

    3. Does CCS crash after program load completes? Yes, but not immediately.  The debugger starts first and less than 1s after it crashes.

    4. Does the device halt at all at any point after program load or does CCS crash immediately after load? See 3 above

  • Thank you for reporting back and glad to hear that you were able to find and fix the problem.

    If you are able to get back to it when you have more time, it will definitely be interesting to see if the crash can also be reproduced with newer versions of CCS.