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.

C2000 Debug: No source available (asm library)

When debugging my code and stopping in a function that comes from our own library (containing assembly modules), I get the info:

No source available for "function() at C:/Projects\myproject\myfile.out:{3} 0x130f8{4}"
There is no "locate sourcefile" button.

The library is built with "--symdebug:coff".

The assembly file contains the following statements:

        .sym _function,32,2,0
        .func
        .global _function
        .text

_function:

...function code...
    .endfunc

What can be the problem?

What statements have to reside inside the assembly library function to be correctly located in the debugger?

CCS 6.1.3.00033
cgtools 15.12.2