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.

MSPM0G1507: CCS Theia problem with debugging project after initial session

Part Number: MSPM0G1507
Other Parts Discussed in Thread: LP-MSPM0G3507,

My CCS Theia 1.2.0 debugger was working earlier today and I was able to launch debug sessions of my application code running on breadboard prototype hardware (MSPM0G1507 MCU) using an LP-MSPM0G3507 Launchpad as the programmer. I set a breakpoint and single-stepped through some code, found a problem and fixed it, and now I can't restart the debugger. I've tried cycling power on my breadboard, disconnected and reconnected the Launchpad, and restarted CCS Theia. None of these seem to have worked. I got the following error message the first few times I tried to restart the debugger:

      "Request 2 cancelled on connection close"

...but now I'm getting the following message every time I try to restart the debugger:

      "Cannot read properties of undefined (reading 'filter')"

I then upgraded to CCS Theia 1.3.1, and I'm still having issues debugging, but at least I have figured out a pattern to the failures so I'm able to work with it now. 

The initial debugging session after CCS Theia starts up works fine every time. If I stop that debugging session, however, I cannot get it restarted again no matter how many times I try. This happens regardless of whether I change my application code to fix something or not after I stop the debugger.  

If I close and then restart CCS Theia, I can run the debugger successfully exactly one time again. In other words, I must restart CCS Theia every time I want to run the debugger. I've done this a half-dozen times in the past several hours and this behavior has been consistent all evening. 

For all subsequent debugging attempts after the first attempt following a CCS Theia restart, I am greeted with the following error message:

 

  • Please try clearing the cache information as described here: software-dl.ti.com/.../ccs_faqs.html

  • I have cleared the cache as instructed, but the problem persists. On all attempts except the first one to launch the debugger in CCS Theia, I still get the "Cannot read properties of undefined (reading 'filter')" error. I am now able to start the debugger as many times as I want using the "Run > Start Debugging" workaround described below, however.

    Before clearing the cache, I tried to start the debugger manually according to the instructions on the following web page:
    Unfortunately, the instructions appear to be out-of-date, but.from the YouTube video linked in that instruction I was able to glean enough information to at least start the debugger in CCS Theia without first building my application code. I did this by selecting "Run > Start Debugging", instead of selecting "Run > Debug Project".


    When I start the debugger this way, it starts up every time with no issues. After I did this, I tried "Run > Debug Project" again and that still fails to start the debugger, and I see the "Cannot read properties of undefined (reading 'filter')" error message. 

    I don't know if this is a part of the problem or not, but whenever I start CCS Theia, it does not automatically detect my LP-MSPM0G3507 LaunchPad. I always have to enter "LP-MSPM0G3507" in the "Select a board or device" box, and then CCS Theia sees it and everything proceeds normally from that point forward.



  • There is one more thing that the you can try. In the debug view, there is a gear icon beside the launch droplist. Click on it to open the launch.json file, copy it first and send it to us. Then clear out the json file and let CCS recreate the file when you start debugging a project.

  • I tried that just now, and it didn't fix the problem at first. After making the requested change I was still getting the same error message when I attempted to debug, and I was no longer able to access that json file using that method so I couldn't see if it had been re-built. Doing the requested action also removed the projects and files from my workspace, which is complex because it is multi-rooted with four different projects using the same set of common application source code files.

    I had saved that workspace as a file earlier, and initially I was able to restore the workspace from the saved workspace file. Unfortunately, when I re-tried launching the debugger all the projects and files disappeared from my workspace again, but I wasn't able to restore it from the file this time (the workspace file had become empty). I had to restart CCS Theia and then manually rebuild my workspace, and now I'm no longer seeing the problem I reported at the start of this thread.

    I've forwarded both the old (with the problem) and new (without the problem) launch.json files to rperezti. Note that the old launch.json file appears to have included the original project where all five products were combined in one project, instead of the five separate projects I now have. Maybe that was the source of the problem? Whatever it was, it's gone away now and I can no longer reproduce the problem that started this thread.
  • I've forwarded both the old (with the problem) and new (without the problem) launch.json files to rperezti

    Glad to hear that the issue appears resolved in your case. CCS engineering has received the files and are investigating to see what the original root cause may have been.

    Thanks

    ki