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.

Undefined symbol

Hi,

I used the MSP430 USB Descriptor Tool to generate CDC USB interface.

Copied the files to the project in CCS.

Now the USB API space (core) files are not to be modified, but the linker complains about Undefined Symbols.

undefined     first referenced                    
  symbol           in file                         
 ---------     ----------------                    
 USB_RX_memcpy ./USB/USB_API/USB_CDC_API/UsbCdc.obj
 USB_TX_memcpy ./USB/USB_API/USB_CDC_API/UsbCdc.obj

error: unresolved symbols remain
error: errors encountered during linking; "MSP-EXP430F5529UserExperience.out"

   not built
>> Compilation failure
gmake: *** [MSP-EXP430F5529UserExperience.out] Error 1

USB_TX_memcpy is only found in file UsbCdc.c.  And this file is not user Modified according to "Programmer's Guide: MSP430 USB API Stack for CDC:

//function pointers
extern VOID *(*USB_TX_memcpy)(VOID * dest, const VOID * source, size_t count);
extern VOID *(*USB_RX_memcpy)(VOID * dest, const VOID * source, size_t count);

and this line is referencing this function pointer.

USB_RX_memcpy(CdcReadCtrl[INTFNUM_OFFSET(intfNum)].pUserBuffer, pEP, nCount);

What is missing here that causes this Link error?

Regards,

Ed

**Attention** This is a public forum