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.
I have been trying to use parts of the StarterWare demo application for the LCDK C6748 to include the ToneLoop in one of my own projects. I copied the required C source and header files (this approach worked so far). Unfortunately I cannot find the implementation files for the following functions, which in turn gives me linker errors.
The example is based on McASP / I2C as it is interfacing a stereo audio codec (AIC31).
undefined first referenced
symbol in file
--------- ----------------
_I2CInterruptVectorGet ./demoI2C.obj
_I2CMasterBusBusy ./demoI2C.obj
_I2CMasterControl ./demoI2C.obj
_I2CMasterDataGet ./demoI2C.obj
_I2CMasterDataPut ./demoI2C.obj
_I2CMasterDisable ./demoI2C.obj
_I2CMasterEnable ./demoI2C.obj
_I2CMasterInitExpClk ./demoI2C.obj
_I2CMasterIntDisableEx ./demoI2C.obj
_I2CMasterIntEnableEx ./demoI2C.obj
_I2CMasterIntStatus ./demoI2C.obj
_I2CMasterSlaveAddrSet ./demoI2C.obj
_I2CMasterStart ./demoI2C.obj
_I2CMasterStop ./demoI2C.obj
_I2CSetDataCount ./demoI2C.obj
_I2CStatusClear ./demoI2C.obj
I know that copying the source and header files is not a clean solution (consider it quick & dirty) so I want to go with using the correct include files+paths and library files+paths.
Anyhow it would be interesting if there are source files for the given C functions for I2C.
In a next step I tried to add the following library search paths (a) and library files themselves (b).
Library search paths (a):
Library files (b):
I still get the linker errors. Any help will be appreciated! Thanks.
Edit: from the TI Wiki: "The I2C driver library exports a set of APIs to configure and use I2C module for data transfers. The APIs are listed in include/i2c.h." But where ist the I2C driver library?
Kind regards,
Matthias
Dear Matthias,
This definitions from drivers.lib.
Please make sure that you have linked the following library in your project.
C:\ti\C6748_StarterWare_1_20_04_01\binary\c674x\cgt_ccs\c6748\drivers\Debug\drivers.lib
If possible, attach the project, will compile it for you.
Can you please attach the screen shot of the Library section of this project and CCS build log.
C:\ti\C6748_StarterWare_1_20_04_01\drivers\hsi2c.c
C:\ti\C6748_StarterWare_1_20_04_01\drivers\i2c.c