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.

Path issues SW v1.10.01.01

Guru 15580 points
Other Parts Discussed in Thread: AM1808

I am getting linker errors due to the linker not finding one or more libraries. Here are the errors.

 

Description Resource Path Location Type

#10010 errors encountered during linking; "usb_test_DSP.out" not built usb_test_DSP C/C++ Problem

<a href="file:/C:/ti/ccsv5/tools/compiler/dmed/HTML/10234.html">#10234-D</a>  unresolved symbols remain usb_test_DSP C/C++ Problem

cannot find file "drivers.lib" usb_test_DSP C/C++ Problem

cannot find file "grlib.lib" usb_test_DSP C/C++ Problem

cannot find file "platform.lib" usb_test_DSP C/C++ Problem

cannot find file "system_config.lib" usb_test_DSP C/C++ Problem

cannot find file "usblib.lib" usb_test_DSP C/C++ Problem

cannot find file "utils.lib" usb_test_DSP C/C++ Problem

unresolved symbol _IntDSPINTCInit, first referenced in ./usb.obj usb_test_DSP C/C++ Problem

unresolved symbol _IntEnable, first referenced in ./usb.obj usb_test_DSP C/C++ Problem

unresolved symbol _IntGlobalDisable, first referenced in ./usb.obj usb_test_DSP C/C++ Problem

unresolved symbol _IntGlobalEnable, first referenced in ./usb.obj usb_test_DSP C/C++ Problem

unresolved symbol _IntGlobalRestore, first referenced in ./usb.obj usb_test_DSP C/C++ Problem

unresolved symbol _USBBufferEventCallback, first referenced in ./usb_serial_structs.obj usb_test_DSP C/C++ Problem

unresolved symbol _USBBufferFlush, first referenced in ./usb.obj usb_test_DSP C/C++ Problem

unresolved symbol _USBBufferInit, first referenced in ./usb.obj usb_test_DSP C/C++ Problem

unresolved symbol _USBDCDCInit, first referenced in ./usb.obj usb_test_DSP C/C++ Problem

unresolved symbol _USBDCDCPacketRead, first referenced in ./usb_serial_structs.obj usb_test_DSP C/C++ Problem

unresolved symbol _USBDCDCPacketWrite, first referenced in ./usb_serial_structs.obj usb_test_DSP C/C++ Problem

unresolved symbol _USBDCDCRxPacketAvailable, first referenced in ./usb_serial_structs.obj usb_test_DSP C/C++ Problem

unresolved symbol _USBDCDCTxPacketAvailable, first referenced in ./usb_serial_structs.obj usb_test_DSP C/C++ Problem

And here are my path and included libraries. I copied these from the usb_serial demo project.

Can someone provide some debugging guidance?

 

 

  • Mike,

              Before building the application you need to build the dependent libraries.Please import drivers, utils. platform, system, usblib, grlib projects to your workspace and compile them. After that build the application example.

     

    Regards

    Baskaran

  • Baskaran,

    Baskaran Chidambaram said:
    Before building the application you need to build the dependent libraries

    All of the library files currently exist. Why is it necessary to rebuild them?

  • BAskaran,

    Ok. I relented and imported and built all of the libraries. I then added a link to each .lib file in my project. However, I still get the linker errors shown below (same as above).

     

    undefined                 first referenced        

      symbol                       in file             

     ---------                 ----------------        

     _IntDSPINTCInit           ./usb.obj               

     _IntEnable                ./usb.obj               

     _IntGlobalDisable         ./usb.obj               

     _IntGlobalEnable          ./usb.obj               

     _IntGlobalRestore         ./usb.obj               

     _USBBufferEventCallback   ./usb_serial_structs.obj

     _USBBufferFlush           ./usb.obj               

     _USBBufferInit            ./usb.obj               

     _USBDCDCInit              ./usb.obj               

     _USBDCDCPacketRead        ./usb_serial_structs.obj

     _USBDCDCPacketWrite       ./usb_serial_structs.obj

     _USBDCDCRxPacketAvailable ./usb_serial_structs.obj

     _USBDCDCTxPacketAvailable ./usb_serial_structs.obj

    I have attached my project. Please take a look and tell me what I am doing wrong.

    4263.usb_test_DSP.zip

     

  • As a general note the default location for StarterWare under XP appears to be C:\Program Files\Texas Instruments\AM1808_StarterWare_1_00_01_01

    I, in my infinite wisdom decided to install instead into c:\starterware because I don't like typing long path names ...

    and lo and behold I had a torrid time getting things to work.

    So after some hours of wasted effort I reinstalled it to its default location and everything was hunky dory, ...

     ... worked like a dream it did.

  • I encounter some similar errors when building the StarterWare.

    I am running Ubuntu12.04 and using CCS5.3 to set up my environment.

    After importing the existing CCS project, the following errors pop out.

    unresolved symbol __STACK_END, first referenced in ../../../../../../../binary/armv7a/cgt_ccs/am335x/system_config/system.lib<init.obj> gpioLEDBlink C/C++ Problem

    unresolved symbol __TI_auto_init, first referenced in ../../../../../../../binary/armv7a/cgt_ccs/am335x/system_config/system.lib<init.obj> gpioLEDBlink C/C++ Problem

    And through google, I found this post.

    I tried to rebuild the libraries, which does not work at all. After several hours' searching and testing, finally I calm down and look the messages in the console carefully. I found this error:

    ERROR: mklib: could not open /opt/texas/ccsv5/tools/compiler/arm_5.0.1/lib/rtsv7A8_A_le_eabi.lib for writing: Permission denied

    Apparently, this file mentioned above can not be accessed by our compiler. So I use the command below to change the permissions of the files.

    $ chmod 777 /opt/texas -R

    Then, the project was built successfully~

    The reason that I come across the problem maybe I have used "sudo" to install the CCS5.3.