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.

"no source available" reported when trying to step into assembler file: CC5.2 debug L138 target



Hi,

I don't have source available for debugging assembler files, and I am not sure which project switches I need to set here.

Please could someone let me know?

Thanks

  • If the file is within a library, for example, and the library is not built with debug information (which is quite normal for libraries) then when you step into that code, you will see the message in CCS about source not available. You can still view the assembly instructions in the disassembly window, or if you know have the sources/know the location of the source file, you can click on Locate source and browse to its location.

  • Hi,

    The assembler file I am looking at is in my application project, I tried pressing the "show source" button in the disassembler window but the view is largely unchanged.

    Is the "locate source" button in the debugger view? I can only see a button that directs me to go to the disassembler window

    I would have liked to step through the actual assembler file as the comments in it help me see where I am more clearly, but if this is how it looks then I will just get on with what I can see.

    Thanks,

    Steve

  • If the assembly source file is part of your project and the project is built with -g (debugging enabled), and the project is open in CCS when starting the debug session, then the source should be found.

    Typically when you load code for a project-less debug session, then additional steps are required to tell the debugger where to look for the sources. If that is your case, you can see the section "Debugging Without a project" in this presentation. However,this should not be necessary when the project is open in CCS which I assume is the case in your situation.