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.

Unresolved Symbols

Hi,

 

I am using a TMS 320 F 2808, CCS 3.3

I have 2 source files in my project and a bunch of header and lib files

main.c == main source code

SyncBuck_PwmCnf.== dependancy

when i try to compile, I receive the following error,

 undefined first referenced                                                                              
  symbol       in file                                                                                   
 --------- ----------------                                                                              
 _ePWM     C:\\tidcs\\c28\\DSP280x\\v160\\Voltage Regulator\\Voltage Regulator\\Debug\\SyncBuck_PwmCnf.obj

error: unresolved symbols remain
error: errors encountered during linking; "./Debug/Voltage Regulator.out" not
   built

I need the dependancy because I need to access the certain function within the source.

 

Please suggest,

 

Thank You

 

 

  • It means somewhere in the SyncBuck_PwmCnf source you have used the symbol "_ePWM" but the linker is unable to find where it is created.  For example, if your code had the statement C = A+B but you never created a variable called A within the scope of this statement then the symbol A would be undefined.

    -Lori

  • Lori,

    Thank You, I will check that out.

    I have another question. I am using the IQmath library to convert a q15 no to long int. but it returns the following error.

    undefined first referenced                                                                    
      symbol       in file                                                                         
     --------- ----------------                                                                    
     FD$$MPY   C:\\tidcs\\c28\\DSP280x\\v160\\Voltage Regulator\\Voltage Regulator\\Debug\\main4.obj
     FD$$TOL   C:\\tidcs\\c28\\DSP280x\\v160\\Voltage Regulator\\Voltage Regulator\\Debug\\main4.obj
     I$$TOFD   C:\\tidcs\\c28\\DSP280x\\v160\\Voltage Regulator\\Voltage Regulator\\Debug\\main4.obj

    could you please help me with this.

    -Manas

     

  • Manas,

    Those look like runtime support library symbols.  Make sure you have the runtime support library (rts2800_ml.lib for fixed point devices) in your project.  The easiest way is to just specify it in the linker build options as shown below.

    -Lori

     

  • Hey Lori,

     

    Thank You it did work.

     

    -Manas

  • Thank you very much  Lori

    That helped me  a lot In which document could I find this information I would like to know if I am not making other mistake like this.

     

    Best regards

     

    Emmanuel Lange

  • emmanuel lange said:
    That helped me  a lot In which document could I find this information I would like to know if I am not making other mistake like this.

    Emmanuel,

    The runtime support library should be mentioned in the C2000 compiler ref guide.  A runtime support library should be included in any C/C++ project as it has all the support functions the compiler uses.  I recognized the error from having forgotten to include it myself over the years :)  The symbols with $$'s in them and names related to support functions is usually a giveaway that the runtime support library is missing.   Any example project you get from TI will already have this included.

    -Lori