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.

Debug mode error "Can't find a source file at "/tmp/TI_MKLIBLoYDv5/SRC/args_main.c" "

Hello.

When I start debug mode, it can be seen this message as below.

Can't find a source file at "/tmp/TI_MKLIBLoYDv5/SRC/args_main.c"
Locate the file or edit the source lookup path to include its location.

And I found E2E list and found simular issue and comments as below.

"The processor has halted inside the C runtime support library. 
However as CCS can't find the source to it that message is displayed. 
It can't find the source as this is a library that was built the first time you built your project
(or another project with the same runtime settings)
and then the source is removed. 
You can see that the source was located within a temporary directory. 
Basically there is a tool called TI_MKLIB that builds the libraries as needed. 
The confusing part is that when it builds them it leaves enough debug information
that CCS knows where the source file was when it was built
but as it is a temporary location they are no longer there.

There is no error to worry about here, you can perform a step out if you want to get back to your source code.
In the future we will have the source code for the libraries in a standard location
so that these messages to not appear."

 However, I think it's some related debug option to solve this issue.

Could you let me know how to improve it??

Thanks.

  • Hello,

    This sentence explains it all:

    ChangSeok Ha said:
    It can't find the source as this is a library that was built the first time you built your project
    (or another project with the same runtime settings)
    and then the source is removed. 

    Basically the source file is gone. So the debugger cannot access it.

    ChangSeok Ha said:

     However, I think it's some related debug option to solve this issue.

    Could you let me know how to improve it??

    There is no debug option to solve the issue. The debugger is looking for the source file and it is not there. You need to get the source file again and point CCS to it

    Thanks

    ki

  • For anyone who looks here ...

    In my case, I had a watchpoint enabled, and CCS tried to reestablish it in a new debug session.

    After I disabled the watchpoint, the error disappeared.