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.

CCS 3.1 : Symbol referencing error

Other Parts Discussed in Thread: CCSTUDIO

Dear all, 
I have a  problem with DSK 6713 and CCS 3.1
I have added the csl6713.lib ,rts6700.lib and dsk6713bsl.lib files from CCS to the project
The support files c6713dskinit.c, vectors_intr.asm and c6713dsk.cmd that come with Rulph Chassaing and Donald S. Reay text on using DSK6713.
My code is simple : to generate a sine wave using DSK6713; the code is given below

======================
#include "dsk6713_aic23.h" //codec-dsk support file
Uint32 fs=DSK6713_AIC23_FREQ_16KHZ; //set sampling rate
short sine_table[8] = {0,707,1000,707,0,-707,-1000,-707};
short gain = 10;
int i = 0;

interrupt void c_int11() //interrupt service routine
{
output_sample(sine_table[i]);
i= i+1;
if(i >= 8)i=0;
return;
}

void main()
{
comm_intr(); //init DSK, codec, McBSP
while (1); 
}
===================================

I get a compilation failure message 

undefined 
symbol 
--------- 
_inputsource 
>> error: symbol referencing errors - './Debug/sinetest.out' not built

I am aware this is due to a linker related issue,but not able to trace the exact source of the problem. I tried re installing CCS3.1, after deleting the previous registry keys(Texas instruments and GODSP ) and folders.
Is the problem due to a typo in the program i am not able to locate (i am extremely sorry if that is the case)
I have seen that the many others have raised the same issue in online forums, but the issue remains unsolved.
you can find the Chassaing support files as this link

https://goo.gl/OH8UDi

compiler options
---------------------------
-g -fr"$(Proj_dir)\Debug" -i"c:\CCStudio_v3.1\C6000\dsk6713\include" -i"c:\CCStudio_v3.1\MyProjects\Support" -d"CHIP_6713" -mv6710 --mem_model:data=far

linker options
--------------------
-c -o".\Debug\sinetest.out" -stack0x1000 -w -x -i"c:\CCStudio_v3.1\C6000\dsk6713\lib" -l"rts6700.lib" -l"dsk6713bsl.lib" -l"csl6713.lib"

Thank for the patience to read the entire message

Joaquim

  • Hi Joaquim,
    Can you please attach the complete project ?
    Also share the complete build log.
  • Thanks for the reply Mr.Titus, unfortunately all project files are in the college pc; no chance of retriving them until tuesday (monday 21/09/15 being a local holiday here). Is there a chance to point out a solution without the build log etc.
  • Hi Joaquim,
    The error log seems from linker, so we should find the API "inputsource" where get defined.
    We need to linki that code into this project, it could be simple "C" code or library.
    This is the cause for not linking properly and thus not able to generate out file.

  • Hi Titus,

    I tried compiling the code with few build options as follows:

    compiler options

    -g -k -s -i"$(Install_dir)\c6000\dsk6713\include" -d"CHIP_6713" -mv6710 --mem_model:data=far


    linker options

    -c -m".\Debug\sept.map" -o".\Debug\sept.out" -w -x -i"$(Install_dir)\c6000\dsk6713\lib"

    The project files can be found at this link. I have also provided the files included in the project

    https://goo.gl/6FQGSQ

    And this is what we have


    ------------------------------ sept.pjt - Debug ------------------------------
    [sept.c] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -g -k -s -i"C:/CCStudio_v3.1/c6000/dsk6713/include" -d"CHIP_6713" -mv6710 --mem_model:data=far -@"Debug.lkf" "sept.c"

    [Linking...] "C:\CCStudio_v3.1\C6000\cgtools\bin\cl6x" -@"Debug.lkf"
    <Linking>
    >> warning: creating .stack section with default size of 400 (hex) words.
    Use
    -stack option to change the default size.

    undefined first referenced
    symbol in file
    --------- ----------------
    _inputsource C:\Documents and Settings\cet\Desktop\Support\c6713dskinit.obj
    >> error: symbol referencing errors - './Debug/sept.out' not built

    >> Compilation failure

    Build Complete,
    2 Errors, 1 Warnings, 0 Remarks.

    We have CCS3.1 here in the lab as the DSK6713 board supports that,i have tried compiling the code on CCS5.5 - a new set of errors crop up, even after manually including the required files.

    Thank you

    Joaquim

  • Hi Joaquim,
    Can you please add the following line in your code and rebuild ?

    Uint16 inputsource=DSK6713_AIC23_INPUT_MIC; // select input
  • Hello Titus,

    Thanks for the reply.

    I did compile the code with the following line added to it:

    Uint16 inputsource=DSK6713_AIC23_INPUT_MIC; // select input

    go an error " INPUT_MIC undefined"

    on checking the examples with Prof. Chassaing's text, found the following 

    #define DSK6713_AIC23_INPUT_MIC 0x0015
    #define DSK6713_AIC23_INPUT_LINE 0x0011

    added them to the code and compiled, no errors.

    so let me ask three rather very naive questions:

    1) what is the need to define the DSK board input lines when it is by default configured in C6713dskinit.h ?

    2) What is the need of defining the input, in a program which generates sine wave using a look up table ?

    3) From which connector do I take the output to view on a DSO?

    Thank you for the patience

    Joaquim

  • Hi Joaquim,
    I'm not sure that why this definitions were missed since its not provided by TI.
    I have referred the following E2E post and given the suggestion.
    e2e.ti.com/.../1275261

    Please refer to that book to know where to probe and all.
  • Hi Titus,
    I had infact mixed up the code from the 1st and 2nd editions of the text book. Professor Donald Reay pointed out this fact to me.
    e2e.ti.com/.../1635970

    Thank you for your time and patience
    Joaquim
  • Hi Joaquim,
    I'm glad that you are able to solve the problem.
    Thanks for your update.