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 locate source file wrong GIO.c

Other Parts Discussed in Thread: SYSBIOS

Hello,

I'm trying to debug why GIO_submit function returns -1 and I set a breakpoint where is called then Step In and I get a window that displays

Can't find a source file at "/db/vtree/library/trees/avala/avala-q37x/src/ti/sysbios/io/GIO.c"
Locate the file or edit the source lookup path to include its location.

I press the Locate file and point to C:\ti\bios_6_33_05_46\packages\ti\sysbios\io where GIO.c is located, however stepping through its source code the debug line jumps randomly even on lines with comments which tells me it is not the right file for debugging or the SYS/BIOS library was built with another version. Since I only have BIOS 6.33.05.46 installed that came with CCS v5.2.1.00018 (my target is C6748), how can I find which is the right version of GIO.c to use? Can I extract any version information from SYS/BIOS GIO module?

Thank you in advance,

David.

  • David,

    The source file is the correct one.  The problem I think is that you have built with a library that is optimized and not the debug libraries.
    Try adding the following lines to your *.cfg script to see if it makes a difference:

               var BIOS = xdc.useModule('ti.sysbios.BIOS');
               BIOS.libType = BIOS.LibType_Debug;

    Judah