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.

TM4C1294NCPDT: Can't find a source file at "C:/Jenkins/workspace/TivaWare-Git-Release/DriverLib/build/DriverLib.test/usblib/usbbuffer.c" ?

Part Number: TM4C1294NCPDT

I tried to move my project that was based usb_dev_bulk on 2.1.0 to 2.1.4.

After I clean up the obvious problem, it compiles, but when I run it, it falls into a FaultISR trap

Stepping through it, the problem is in  USBBufferInit(&g_sTxBuffer);

So, I tried to debug into this routine, but when I do so, I got the message of 

Can't find a source file at "C:/Jenkins/workspace/TivaWare-Git-Release/DriverLib/build/DriverLib.test/usblib/usbbuffer.c" 

I went back the example usb_dev_bulk from 2.1.4, and I got the same error when I tried to debug into the same line.

What is this "C:/Jenkins/workspace/TivaWare-Git-Release..."? 

  • This means that you tried to open a source file for a routine that was pulled from the driver library. CCS tries to look at the path that was used when the driver library was compiled. There are several different solutions.

    1) When CCS gives this error, it gives you the option of telling it where the source file is. In this case, usbbuffer.c is usually (normal install path) at:
    "C:\ti\TivaWare_C_Series-2.1.4.178\usblib"

    2) To avoid repeatedly showing CCS the location of this file, you can simply copy the file from the location above and add it to your project. You will also need to include the path above in your header file search directory as usbbuffer.c includes two header files from this location.

    3) You can rebuild driverlib.lib on your machine. Do this by importing the project from the directory "C:\ti\TivaWare_C_Series-2.1.4.178\driverlib\ccs" and re-building it. The new driverlib.lib file will be in your workspace under the following subpath: "driverlib\Debug\driverlib.lib". Change your project ARM Linker File Search Path to point to this new file. Now CCS will be able to find the source of all of the library functions. Note that this library will be compiled with the compiler version you are currently using which may be different from the one originally used.