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.

TMS320F28377D: TMS320F28377D

Part Number: TMS320F28377D
Other Parts Discussed in Thread: C2000WARE

Tool/software:

Dear experts ,

i have wrote the code for one of the inverter application.

i am getting the error as below  

undefined first referenced
symbol in file
--------- ----------------
___error__ ./AppModules/SPI_B/APPLICATION/spib.obj

i am not able to find any variable or function is not there.

could you please let us me know why this has occurs and how to solve this.

  • Hi, 

    It looks like the reference to the default error function has a typo. Can you reattempt with __error__  (2 underscores on either end)

    Thanks,

    Arnav

  • Dear sir,

    i haven't define any function whose name start with error with in it.

    even during global search i am not able to find out any function whose name is having error .

    so i am not able to find out what to do .

  • Hi,

    Could you please recheck in spib.c and spib.h for a reference to ___error__? The issue is most likely from within the application code, indicated by the misspelling of the default error function (which can be found in device.c in the SDK). Alternatively, you could link the spib.c and spib.h files here if that is possible.

    Also, which version of C2000Ware are you using?

    Thanks,

    Arnav

  • Dear Arnav bhai,

    I am using c2000 ware version 5.01.

    i am able to solve my problem now.

    the problem was related to one header file of spi.h & global header file globalvariable .h

    i have added spi.h in device.h and added globalvariable .h file to spi.h and now linker is able to find the definition during object file generation. 

    attaching the snapshot for things what i have done.