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

Other Parts Discussed in Thread: CONTROLSUITE

I am receiving a Undefined Symbol error that makes no sense:

<Linking>

 undefined      first referenced
  symbol            in file      
 ---------      ----------------
 _CpuTimer0Regs ./main.obj       
 _FlashRegs     ./UtilityCode.obj
 _GpioCtrlRegs  ./UtilityCode.obj
 _GpioDataRegs  ./main.obj       

>> Compilation failure
 _PieCtrlRegs   ./UtilityCode.obj
 _PieVectTable  ./UtilityCode.obj
 _SysCtrlRegs   ./UtilityCode.obj

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "MyThirdPiccProg.out" not built

How do I fix this?

Thanks,

Steve.

  • Hi,

    I guess you're facing some linking issues. This usually happens due to:

    1. Improper initialization or

    2. You forgot to add a .c file or a library to your project

    Regards,

    Gautam

  • Hi Guys!

    Steve,

    add please file F2806x_GlobalVariableDefs.c into your project folder from

    ti\controlSUITE\device_support\f2806x\v136\F2806x_headers\source\

    Regards,

    Igor

  • I have the same problem:

     undefined         first referenced                                                   
      symbol               in file                                                        
     ---------         ----------------                                                   
     _CommsOKflg       ./SciCommsGui.obj                                                  
     _SerialCommsTimer ./SciCommsGui.obj                                                  
     _arrayGetList     ./SciCommsGui.obj                                                  
     _main             C:/CCS/ccsv4/tools/compiler/c2000/lib/rts2800_ml.lib<args_main.obj>
     _varGetList       ./SciCommsGui.obj                                                  
     _varSetBtnList    ./SciCommsGui.obj                                                  
     _varSetSldrList   ./SciCommsGui.obj                                                  
     _varSetTxtList    ./SciCommsGui.obj                                                  

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

    I have checked that DSP2803x_GlobalVariableDefs.c are in the project folder tree.

    Other than that I have no clue what to do :)

  • Hi Yngve!

    If you mean example project from folder

    ti\controlSUITE\development_kits\TemplateProjects\FlashingLeds-F28035_v1.0\ 

    I haven't problems with one. Perhaps you have imported it  to your CCS workspace incorrect. You need to do following: Project>Import Existing CCS Eclipse Project>Browse etc. Also at "Import Window"  fill check box "copy project into workspace". You can check a content of your project folder through my screenshot:

    Regards,

    Igor

  • Hello Igor and thank you for your response.

    The project is this one: C:\TI_F28xxx_SysSW\FlashingLeds\FlashingLeds

    I have "fought" a dozen errors, mostly about missing include files which I have move around and updated, but also a bunch of other path-errors to files which are not in their default location and so on. In one file I even had to delete som code (watchdog in DSP2803x_CodeStartBranch.asm).

    So, finally after fighting through all these errors this is what stands in between me and what I hope will become an out-file.

    My project folder is currently 83 files long due to all the include files I heaped together in the project root (mostly header files) - but I think you did it in a more neater way by referring to their location in the include-folder.

    anyways, what is an obj-file and why cant I "read" it? It seems like binary code, and any search of the undefined symbols in the project returns nothing. Hence i have no idea what it means and what I can do about it.

    It is slightly frustrating not getting anyting to build or run when I spent 400 dollars on a kit which had a bunch of samples with it.

  • Thanks, Gautam and Igor!  That got it linked!

    The next task it get the code into the Piccolo.  Debug does not work for me.  I guess I need to start digging through help stuff to see what I am doing incorrectly.

    Steve.

  • Hi Guys!

    Steve,

    you are welcome to forum if new issues will appear. Good luck.

    Yngve, 

    do not panic;-). This thread is closed. Create please own new post with your issues (NEW POST button). And my first recommendation is download & install please controlSUITE if you didn't do that still.

    Regards,

    Igor