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.

Compiler/LAUNCHXL-F28069M: undefined symbols with commandline

Part Number: LAUNCHXL-F28069M
Other Parts Discussed in Thread: C2000WARE

Tool/software: TI C/C++ Compiler

I try to compile the sample "Example_2806xLEDBlink" with the commandline in Linux. I've searched the documentation but I didn't get an answer out of it.

This is the command an output:

dinera@green:~/Downloads/ti-cgt-c2000_18.12.5.LTS$ ./bin/cl2000 /home/dinera/ti/workspace_v8/Example_2806xLEDBlink/Example_2806xLEDBlink.c --include_path=/home/dinera/ti/C2000Ware_2_01_00_00_Software/device_support/f2806x/common/include/ --include_path=/home/dinera/ti/C2000Ware_2_01_00_00_Software/device_support/f2806x/headers/include/ --run_linker --ram_model --library lib/libc.a <Linking>

 undefined         first referenced         
  symbol               in file              
 ---------         ----------------         
 _ConfigCpuTimer   Example_2806xLEDBlink.obj
 _CpuTimer0        Example_2806xLEDBlink.obj
 _CpuTimer0Regs    Example_2806xLEDBlink.obj
 _GpioCtrlRegs     Example_2806xLEDBlink.obj
 _GpioDataRegs     Example_2806xLEDBlink.obj
 _InitCpuTimers    Example_2806xLEDBlink.obj
 _InitPieCtrl      Example_2806xLEDBlink.obj
 _InitPieVectTable Example_2806xLEDBlink.obj
 _InitSysCtrl      Example_2806xLEDBlink.obj
 _PieCtrlRegs      Example_2806xLEDBlink.obj
 _PieVectTable     Example_2806xLEDBlink.obj

error: unresolved symbols remain
error: errors encountered during linking; "a.out" not built

>> Compilation failure

What did I wrong? How will find the symbols?

Thanks for your help!

  • Justus,

    Download C2000Ware and take a look at the examples in the following directory:

    C:\ti\c2000\C2000Ware_<version>\device_support\f2806x

    If you search for any of those symbols, without the leading _, you will find the file they are in.  

    Example:

    ConfigCpuTimer

    is in: C:\ti\c2000\C2000Ware_<version>\device_support\f2806x\common\source\F2806x_CpuTimers.c

    This file needs to be compiled and then the object linked with the other object files.

    Refer to: C:\ti\c2000\C2000Ware_<version>\device_support\f2806x\docs\F2806x_DEV_USER_GUIDE.pdf for more information. 

    Regards

    Lori

  • Hi Lori,

    Thanks for your reply!

    Your answer is very helpful and this document is which I looking for.

    Best Regards

    Justus