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.

Problem getting to start of main on debug startup

Here is my problem: I have a project, and one day everything worked great.  The next day when I tried to debug, the debugger never got to the beginning of main.  It says there is a thread running, however.  Pausing it shows it is in the middle of some function where it shouldn't be, and the call stack doesn't make sense.  This seems to happen regardless of the debugger option of jumping to main.  I don't believe any code changes were made.

 I have a workaround solution, which was to create a new project, then copy every single file in the old project root folder over to the new one.  Everything works fine on the new project.  All the build settings, tcf file, source code is identical.  It was a copy paste.  I would really like to understand this problem though because it is causing headaches with our configuration management tools to now be working out of a different directory.  I would really like to get the original project working again.  I tried deleting it (without removing the files from the pc) then re-creating it, but it just wont' debug correctly for me.

Interestingly enough, my co-worker also has a CCS workspace setup, and if he references the old project it works fine.  It gets to main just fine upon debug.

I'm wondering if there is some debug settings file that got corrupted and is not stored in the project root directory?  I'm at a loss here.  Any help would be appreciated.  Here are my code tools:

IDE is CCS 4.0.1.01001

Code generation tools 4.3.2

DSP/BIOS 5.40.02.22

We are working with a 5510A DSP, but I'm thinking this is not related to my code or our hardware because of the symptoms above. 

Thanks!

  • Hi,

    There is an debugger option to run to symbol "main" in the launch configuration, perhaps this is no longer valid. You can open the launch configuration dialog and check the launch configuration to see if this is the case.

    Or you can try to delete your launch configuration in the launch dialog before you start the debug session, this will give you a clean start of the debugger option.

    Hope this help.
    Patrick

  • Yes, I checked the debugger options, that is still checked.  I tried changing it, applying the new options, then setting it back and it didn't help.  I'd like to try to delete the launch configuration, how do I do that?

     

    Thanks,

    Becky

  • Select "Target | Debug..." from the main window. There should be a list of launch configuration in the left tree, you can highlight them and hit the red X button to remove them.

    Patrick

  • Hi Becky,

    Since transferring the files to a new project works, it could be possible that the problem is due to corrupted intermediate files. Have you tried cleaning up the project files to delete all intermediate files and rebuilding?

    One way to delete the launch configuration is to delete the .ccxml file associated with it from the project folder and initialising a new one.

    Hope this helps.

    Regards,

    Sid

  • I removed the configuration there, then reset everything up, and I still got the same problem.

    However, your suggestion prompted me to go to the .launch file and compare that with the one associated with the identical working project in the other directory.  All the options appeared to be the same (with the exception of file paths), but in a different order.  I rearranged everything to match my known good launch file and now my original project works again!

    Thank you!