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 m getting the following error while working on CCSv4 ( stellaris dk lm3s9b96 ) ............there are some other posts related to same error but i m not getting what exactly i need to do to resolve this

Other Parts Discussed in Thread: TLV320AIC23B


**** Build of configuration Debug for project raj1 ****

C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake -k all
'Building target: raj1.out'
'Invoking: Linker'
"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/tms470/bin/cl470" -mv7M3 -g -O2 --gcc --define=ccs --define=PART_LM3S9B96 --diag_warning=225 -me --gen_func_subsections --abi=eabi --code_state=16 --ual -z -m"raj1.map" --stack_size=256 --heap_size=0 --warn_sections -i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/tms470/lib" -i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/tms470/include" --reread_libs --rom_model -o "raj1.out" "./drivers/wavfile.obj" "./drivers/vidwidget.obj" "./drivers/usb_sound.obj" "./drivers/touch.obj" "./drivers/tlv320aic23b.obj" "./drivers/thumbwheel.obj" "./drivers/ssiflash.obj" "./drivers/sound.obj" "./drivers/set_pinout.obj" "./drivers/kitronix320x240x16_ssd2119_8bit.obj" "./drivers/kitronix320x240x16_fpga.obj" "./drivers/jpgwidget.obj" "./drivers/extram.obj" "./drivers/extflash.obj" "./drivers/camera.obj" "./startup_ccs.obj" "./main.obj" -l"rtsv7M3_T_le_eabi.lib" "../lm3s9b96.cmd"
<Linking>

undefined                                               first referenced
symbol                                                      in file
--------- ----------------
EPIAddressMapSet                       ./drivers/set_pinout.obj
EPIConfigGPModeSet .                  /drivers/set_pinout.obj
EPIConfigHB8Set                         ./drivers/set_pinout.obj
EPIConfigSDRAMSet                       ./drivers/set_pinout.obj
EPIDividerSet                              ./drivers/set_pinout.obj
EPIModeSet                            ./drivers/set_pinout.obj
GPIODirModeSet                          ./drivers/set_pinout.obj
GPIOPadConfigSet                    ./drivers/tlv320aic23b.obj
GPIOPinTypeGPIOInput                 ./drivers/tlv320aic23b.obj
GPIOPinTypeGPIOOutput              ./drivers/touch.obj
GPIOPinTypeI2C                            ./drivers/tlv320aic23b.obj
GPIOPinWrite                   ./drivers/touch.obj
GrContextInit                                   ./drivers/vidwidget.obj
GrRectDraw                            ./drivers/vidwidget.obj
GrRectFill                                 ./drivers/vidwidget.obj
GrStringDraw                            ./drivers/jpgwidget.obj
GrStringWidthGet .               /drivers/jpgwidget.obj
I2CMasterControl .              /drivers/tlv320aic23b.obj
I2CMasterDataGet               ./drivers/set_pinout.obj
I2CMasterDataPut                  ./drivers/tlv320aic23b.obj
I2CMasterEnable                     ./drivers/set_pinout.obj
I2CMasterErr .                   /drivers/tlv320aic23b.obj
I2CMasterInitExpClk .                  /drivers/tlv320aic23b.obj
I2CMasterIntClear                  ./drivers/tlv320aic23b.obj
I2CMasterIntStatus                        ./drivers/tlv320aic23b.obj
I2CMasterSlaveAddrSet                 ./drivers/tlv320aic23b.obj
SysCtlClockGet                          ./drivers/touch.obj
SysCtlClockSet                           ./main.obj
SysCtlDelay                        ./drivers/tlv320aic23b.obj
SysCtlPeripheralEnable                ./drivers/usb_sound.obj
SysCtlPeripheralReset                     ./drivers/sound.obj
g_sFontCm20                             ./main.obj
g_sFontCm40                                          ./main.obj

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

>> Compilation failure
C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: *** [raj1.out] Error 1
C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: Target `all' not remade because of errors.
Build complete for project raj1

  • Hi Nikhil,

    this seems to be a problem with your linker file search paths/path variables.  Ie your include settings.

    Please see this wiki and double check that the path being complained about (/drivers it seems)  is properly included and keep us informed how it goes.

    http://processors.wiki.ti.com/index.php/Include_paths_and_options

    Best Regards,

    LIsa

  • Nikhil,

    The undefined symbol errors are due to missing libraries. These symbols are defined in driverlib, grlib etc in Stellarisware, hence need to be linked in to the project so the references to those symbols can be resolved. If you go into Project Properties->C/C++ Build->TMS470 Linker->File Search Path, you can add the driverlib (and if needed grlib) under the --library option. For additional reference, take a look at one of the Stellarisware example projects, most of them should have these libraries specified.