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/TMS320C6713B: CCS/TMS320C6713B:

Part Number: TMS320C6713B


Tool/software: Code Composer Studio

Dear Sirs,

For a wile I am trying to resolve a problem using C6713dskinit.h and c6713dskinit.c. I have a project with the Board TMS320C6713 from Spectrum Digital in that these both file have to be included. After adding c6713dskinit.c I receive the following compilation error:

>> Compilation failure
subdir_rules.mk:16: recipe for target 'c6713dskinit.obj' failed
"../c6713dskinit.c", line 15: error #20: identifier "DSK6713_AIC23_codecdatahandle" is undefined
"../c6713dskinit.c", line 32: error #20: identifier "DSK6713_AIC23_codecdatahandle" is undefined
"../c6713dskinit.c", line 60: error #20: identifier "DSK6713_AIC23_codecdatahandle" is undefined
"../c6713dskinit.c", line 69: error #20: identifier "DSK6713_AIC23_codecdatahandle" is undefined
"../c6713dskinit.c", line 78: error #20: identifier "DSK6713_AIC23_codecdatahandle" is undefined
"../c6713dskinit.c", line 86: error #20: identifier "DSK6713_AIC23_codecdatahandle" is undefined
"../c6713dskinit.c", line 99: error #20: identifier "DSK6713_AIC23_codecdatahandle" is undefined
"../c6713dskinit.c", line 106: error #20: identifier "DSK6713_AIC23_codecdatahandle" is undefined
8 errors detected in the compilation of "../c6713dskinit.c".

The described errors appear in c6713dskinit.c. I use CCS Version: 7.4.0.00015. As I see the declaration of DSK6713_AIC23_codecdatahandle exists in dsk6713_aic23.h and the path to this file is added in the project settings. Also all the libraries necessary for the project. By the other kind of projects that don't need C6713dskinit.h and c6713dskinit.c the compilation process is working fine.

Thank You

  • What is the version of compiler that you are using for this project ? Are you using COFF or ELF binary format for the output executable.

    Can you please share the project settings for us to confirm the paths are correct. It may also help if you provide full build log from CCS console and copy it to a text file and post it here for our analysis.

    If you have the include path set correctly and the header is included there is no reason for the identifier to be undefined. You can look at the tone example in the DSK C6713 BSL for reference.

    Regards,

    Rahul

  • Dear Sirs,

    Thank You for the answer.

    I am using compiler version TI v.7.4.24 and the output format is legacy COFF. I also trayed with eabi (ELF) but the result is the same compiler error.

    C6000 Compiler options -> Include options -> Add dir to #include search path:

    ${XDC_INCLUDE_PATH}

    ${CG_TOOL_ROOT}/include

    D:\Install\C6xCSL\include

    D:\Install\TI_CCS\DSK6713\DSK6713\c6000\dsk6713\include

    C6000 Linker-> File Search Path -> Include library file or command file as input:

    ${XDC_LIBRARIES}

    D:\Install\C6xCSL\lib_3x\csl6713e.lib

    D:\Install\TI_CCS\DSK6713\DSK6713\c6000\dsk6713\lib\dsk6713bsl.lib

    D:\Install\TI_CCS\ccsv7\tools\compiler\c6000_7.4.24\lib\rts6700.lib

    C6000 Linker-> File Search Path -> Add <dir> to library search path

    ${XDC_LIBRARY_PATH}

    ${CG_TOOL_ROOT}/lib

    CDT Build Console (Compiler output):

    **** Build of configuration Debug for project TMS320C6713_BUF ****

    "D:\\Install\\TI_CCS\\ccsv7\\utils\\bin\\gmake" -k all

    'Building file: "../Vectors_intr.asm"'
    'Invoking: C6000 Compiler'
    "D:/Install/TI_CCS/ccsv7/tools/compiler/c6000_7.4.24/bin/cl6x" -mv6713 --abi=coffabi -Ooff -g --include_path="D:/Install/TI_CCS/ccsv7/tools/compiler/c6000_7.4.24/include" --include_path="D:/Install/C6xCSL/include" --include_path="D:/Install/TI_CCS/DSK6713/DSK6713/c6000/dsk6713/include" --define=CHIP_6713 --define=c6713 --diag_wrap=off --diag_warning=225 --display_error_number --mem_model:const=far --mem_model:data=far --wchar_t=16 --preproc_with_compile --preproc_dependency="Vectors_intr.d_raw" "../Vectors_intr.asm"
    'Finished building: "../Vectors_intr.asm"'

    'Building file: "../c6713dskinit.c"'
    'Invoking: C6000 Compiler'
    "D:/Install/TI_CCS/ccsv7/tools/compiler/c6000_7.4.24/bin/cl6x" -mv6713 --abi=coffabi -Ooff -g --include_path="D:/Install/TI_CCS/ccsv7/tools/compiler/c6000_7.4.24/include" --include_path="D:/Install/C6xCSL/include" --include_path="D:/Install/TI_CCS/DSK6713/DSK6713/c6000/dsk6713/include" --define=CHIP_6713 --define=c6713 --diag_wrap=off --diag_warning=225 --display_error_number --mem_model:const=far --mem_model:data=far --wchar_t=16 --preproc_with_compile --preproc_dependency="c6713dskinit.d_raw" "../c6713dskinit.c"

    >> Compilation failure
    subdir_rules.mk:16: recipe for target 'c6713dskinit.obj' failed
    "../c6713dskinit.c", line 16: error #20: identifier "DSK6713_AIC23_codecdatahandle" is undefined
    "../c6713dskinit.c", line 33: error #20: identifier "DSK6713_AIC23_codecdatahandle" is undefined
    "../c6713dskinit.c", line 61: error #20: identifier "DSK6713_AIC23_codecdatahandle" is undefined
    "../c6713dskinit.c", line 70: error #20: identifier "DSK6713_AIC23_codecdatahandle" is undefined
    "../c6713dskinit.c", line 79: error #20: identifier "DSK6713_AIC23_codecdatahandle" is undefined
    "../c6713dskinit.c", line 87: error #20: identifier "DSK6713_AIC23_codecdatahandle" is undefined
    "../c6713dskinit.c", line 100: error #20: identifier "DSK6713_AIC23_codecdatahandle" is undefined
    "../c6713dskinit.c", line 107: error #20: identifier "DSK6713_AIC23_codecdatahandle" is undefined
    8 errors detected in the compilation of "../c6713dskinit.c".
    gmake: *** [c6713dskinit.obj] Error 1
    'Building file: "../main.c"'
    'Invoking: C6000 Compiler'
    "D:/Install/TI_CCS/ccsv7/tools/compiler/c6000_7.4.24/bin/cl6x" -mv6713 --abi=coffabi -Ooff -g --include_path="D:/Install/TI_CCS/ccsv7/tools/compiler/c6000_7.4.24/include" --include_path="D:/Install/C6xCSL/include" --include_path="D:/Install/TI_CCS/DSK6713/DSK6713/c6000/dsk6713/include" --define=CHIP_6713 --define=c6713 --diag_wrap=off --diag_warning=225 --display_error_number --mem_model:const=far --mem_model:data=far --wchar_t=16 --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c"
    'Finished building: "../main.c"'

    gmake: Target 'all' not remade because of errors.

    **** Build Finished ****