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.

Debugging a Running Target w/o Loading Program - 28335



Is it possible to debug a running target without loading the program?

I have a 28335 EzDsp and I am using a Spectrum USB emulator.

I would like to program the board, disconnect from the board and go do something else while the board is running,  and then come back to the board later and start debugging without loading the program again. That way I can just examine the internal variables, states, registers, etc. I don't want to reload the program, because all the internal data will be lost?

I tried this scenario, by just connecting and not loading the program. But I get a message "No source available for "0x3ff9ce"". It connects successfully but the source code is not loaded for debugging.

So is it possible debug without loading?

 

  • Richard Wells said:
    So is it possible debug without loading?

    Yes, please check this quick tip video.

  • That is exactly what I want to do. However, I followed the steps and it connects but...

    1. It doesn't load the source code

    2. "Halt the target on a connect" is greyed out in the config file.

    3. In my debug  window I only have an option to stop the session not halt.

    Is there any additional setup required for the project?

  • That is exactly what I want to do. However, I followed the steps and it connects but...

    1. It doesn't load the source code

    2. "Halt the target on a connect" is greyed out in the config file.

    3. In my debug window I only have an option to stop the session not halt.

    Is there any additional setup required for the project?
  • Richard Wells said:
    1. It doesn't load the source code

    Do you mean it does not load the symbols? What makes you believe the symbols are not loaded?
    Do you have the setting for "Load symbols only" enabled in the Program tab as shown in the video?  

    Richard Wells said:
    2. "Halt the target on a connect" is greyed out in the config file.

    I see the same thing when I use a Spectrum Digital XDS510USB emulator (as compared with a XDS100v2 which was used when creating the quick tip video).
    So that setting appears to not be supported with the XDS510USB. However, you should still be able to connect to the running target and then halt the target manually.

    Richard Wells said:
    3. In my debug window I only have an option to stop the session not halt.

    If you select the C28xx device in the Debug view, you should be able to click on Suspend to halt the program.

  • That simple step of clicking in the emulator in the debug window enabled the suspend button. Now I can halt the program and debug as expected.

    I have become accustomed to not clicking on anything because both the 'suspend' and 'terminate' buttons have always been enabled during a typical debug session.

    Also, I think the behavior of the IDE is somewhat inconsistent because the 'terminate' button was enabled without clicking on anything. It seems like the 'suspend' button should have also been enabled automatically also. 

    Anyway, thank you very much for your help.

  • I watched the video again, and I noticed the extra step of clicking on the emulator to enable the 'suspend' button.