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.

CCSV6 MSP430 GCC USB examples Debug problems

Hi,

I having been looking at using the MSP430 GCC compiler with CCSV6to do some developments with the MSP430 USB stack.

I have imported and built the GCC versions of a number of the USB Examples and have been getting problems with the debugger stepping over rather than stepping into some of the USB routines. I checked the options in the debug configuration and found that the default settings include"Automatically step over functions without debug information when source stepping". I unchecked this item and then began to get the "No source available for..." error and no source displayed. I have checked the Source Lookup path setting and the folder that contains the source is included in the path. I have also checked that the source file is being built with the -g option so that it includes debug info.

Does anyone have any other things that I can try so that I can do full source single stepping and debugging?

Regards

Roy

  • Roy,

    I tried this with a very simple example and it just worked for me when pointing to the libgloss source code.

    Just to confirm, what you see is something similar to this:

    Then, pointing to the missing source file you are expecting the full source code like this:

    Is that so?

    Regards,

    Rafael

  • Hi,

    Thanks for the response. 

    This is the sort of thing that I am seeing, except I was not getting the Locate File button.

    I have now done some more testing and it would seem that it is actually an optimisation problem. The MSP430 USB example projects are imported with the optimisation set to "Optimize most (-O3)". Changing this to "None (-O0)" seems to remove most of these problems. 

    I should really have worked out the solution before but I did not expect the standard [Debug} build configuration would have the maximum optimisation set.

    Roy