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.

CCS/TM4C1294NCPDT: TIVAWARE - Header files without a corresponding source file

Part Number: TM4C1294NCPDT


Tool/software: Code Composer Studio

In TivaWare_C_Series-2.1.2.111, why isn't there a usblib\device\usbdevice.c file with function definitions for the function prototypes declared in usblib\device\usbdevice.h?  For example, the function prototype for USBDCDInit() is declared in usbdevice.h.  But the function definition for USBDCDInit() is given in usbdenum.c.  Why is that?  Also how do I tell the compiler where to find the function definition for USBDCDInit() in this case? 

  • If I am debugging and need to point CCS to the source of a library function, I use the "Remote Search" feature of CCS to find where the function is defined. It works like a GREP tool.
  • Bob, thanks for the tip about using Remote Search. I'm not able to get to debug mode because of undefined symbol errors, which prevent the program from linking. Can I use Remote Search to tell CCS where to find the undefined symbols when it tries to link?
  • Sorry, I misunderstood your problem. If you have undefined symbols at link time and you need to add a library to the linker's search path, right click on the project and selet "Show Build Settings". Then expand the "ARM Linker" options. Select "File Search Path". Click the green + sign in the top "Include library file ..." box. Then browse for the library you wish to include. In the example below I add the "usblib.lib".