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.

Linking error while building the Audio framework for C5535 ezdsp (TMDX5535EZDSP)

Hi,

I have bought a c5535 ezdsp USB stick dev. kit. It comes with some test projects. The main project is the Audio framework, and another interesting one is LED project.

I can compile and run them separately without any error. The projects are in different directories.

I want to modify the Audio framework such that LEDs on the board blink during the operation. 

I tried to include header files that LED project uses to the Audio framework project from: 

right click/properties/ under C/C++ Build/ tool-chain Setting/ C5500 Compiler/ Include options i added the directories that hold header files. ()

when I call any function that uses the header files, like EZDSP5535_init( ),  the build fails giving the following error:

errors encountered during linking; "C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/bu ild/CSL_USB_IsoFullSpeedExample_ezdsp_Out/Debug/CSL_USB_IsoFullSpeedExample_ ezdsp_Out.out" not built CSL_USB_IsoFullSpeedExample_ezdsp_Out line 0 1377039743046 461

Am I doing something wrong? When I want to use header files, ****.h, should not I just include them in the project directory as I show in the attached pic?

Thanks a lot 

  • Hello,

    Alex Jafari said:
    errors encountered during linking; "C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/bu ild/CSL_USB_IsoFullSpeedExample_ezdsp_Out/Debug/CSL_USB_IsoFullSpeedExample_ ezdsp_Out.out" not built CSL_USB_IsoFullSpeedExample_ezdsp_Out line 0 1377039743046 461

    Please provide some of the other prior error messages before this one.

    Thanks

    ki

  • Hi,

    Thanks for the quick respond. Here is the message from my console:

    'Building file: C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/src/user_interface.c'
    'Invoking: Compiler'
    'Flags: -vcpu:3.3 -g --define="_DEBUG" --define="BIOS_BUILD" --define="CSL_AC_TEST" --define="C5535_EZDSP" --define="C5535_EZDSP_DEMO" --include_path="C:/Program Files (x86)/Texas Instruments/C5500 Code Generation Tools 4.3.9/include" --include_path="C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/build/CSL_USB_IsoFullSpeedExample_ezdsp_Out/Debug" --include_path="C:/Program Files (x86)/Texas Instruments/bios_5_41_10_36/packages/ti/bios/include" --include_path="C:/Program Files (x86)/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/include/c5500" --include_path="C:/Program Files (x86)/Texas Instruments/xdais_7_10_00_06/packages/ti/xdais" --include_path="C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/inc" --include_path="C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/c55xx_csl/inc" --include_path="C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/c55x5_drivers/inc" --include_path="C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/c55x5_drivers/i2c/inc" --include_path="C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/c55x5_drivers/i2s/inc" --include_path="C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/c55x5_drivers/dma/inc" --include_path="C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/c55x5_drivers/pal_os/inc" --include_path="C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/asrc/inc" --include_path="C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/dsplib/inc" --include_path="C:/Program Files (x86)/Texas Instruments/ccsv4/emulation/boards/ezdsp5535_v1/c55xx_csl/inc" --include_path="C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c5500/include"'
    'Flags (cont-d): --include_path="C:/Program Files (x86)/Texas Instruments/ccsv4/emulation/boards/ezdsp5535_v1/include" --diag_warning=225 --large_memory_model --algebraic --obj_directory="C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/build/CSL_USB_IsoFullSpeedExample_ezdsp_Out/Debug" --preproc_with_compile --preproc_dependency="user_interface.pp"'
    "C:/Program Files (x86)/Texas Instruments/C5500 Code Generation Tools 4.3.9/bin/cl55" -@"user_interface_ccsCompiler.opt"
    'Finished building: C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/src/user_interface.c'
    ' '
    'Building target: C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/build/CSL_USB_IsoFullSpeedExample_ezdsp_Out/Debug/CSL_USB_IsoFullSpeedExample_ezdsp_Out.out'
    'Invoking: Linker'
    'Flags: -vcpu:3.3 -g --define="_DEBUG" --define="BIOS_BUILD" --define="CSL_AC_TEST" --define="C5535_EZDSP" --define="C5535_EZDSP_DEMO" --diag_warning=225 --large_memory_model --algebraic --obj_directory="C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/build/CSL_USB_IsoFullSpeedExample_ezdsp_Out/Debug" -z -m"C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/build/CSL_USB_IsoFullSpeedExample_ezdsp_Out/Debug/CSL_USB_IsoFullSpeedExample_ezdsp_Out.map" --warn_sections -i"C:/Program Files (x86)/Texas Instruments/C5500 Code Generation Tools 4.3.9/lib" -i"C:/Program Files (x86)/Texas Instruments/C5500 Code Generation Tools 4.3.9/include" -i"C:/Program Files (x86)/Texas Instruments/bios_5_41_10_36/packages/ti/rtdx/lib/c5500" -i"C:/Program Files (x86)/Texas Instruments/bios_5_41_10_36/packages/ti/bios/lib" -i"C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/build/CSL_USB_IsoFullSpeedExample_ezdsp_Out" -i"C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/build/CSL_USB_IsoFullSpeedExample_ezdsp_Out/Debug" -i"C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/build" -i"/packages/ti/rtdx/lib/c5000" -i"C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/asrc/lib" -i"C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/c55x5_drivers/lib/Debug" -i"C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/c55x5_drivers/pal_os/lib/debug" -i"C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/c55x5_drivers/pal_sys/lib/debug" -i"C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/c55xx_csl/build/Debug" -i"C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/dsplib/lib"'
    'Flags (cont-d): --reread_libs --rom_model'
    "C:/Program Files (x86)/Texas Instruments/C5500 Code Generation Tools 4.3.9/bin/cl55" -@"ccsLinker.opt" -o "C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/build/CSL_USB_IsoFullSpeedExample_ezdsp_Out/Debug/CSL_USB_IsoFullSpeedExample_ezdsp_Out.out"
    <Linking>

    undefined first referenced
    symbol in file
    --------- ----------------
    _EZDSP5535_init ./csl_usb_iso_fullspeed_example.obj
    _EZDSP5535_waitusec ./csl_usb_iso_fullspeed_example.obj

    error: unresolved symbols remain
    error: errors encountered during linking;
    "C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/bu
    ild/CSL_USB_IsoFullSpeedExample_ezdsp_Out/Debug/CSL_USB_IsoFullSpeedExample_
    ezdsp_Out.out" not built

    >> Compilation failure
    gmake: *** [C:/c55/C55_Connected_Audio_Framework_EZDSP/c55-connected-audio-framework/build/CSL_USB_IsoFullSpeedExample_ezdsp_Out/Debug/CSL_USB_IsoFullSpeedExample_ezdsp_Out.out] Error 1
    gmake: Target `all' not remade because of errors.
    Build complete for project CSL_USB_IsoFullSpeedExample_ezdsp_Out

    Thanks again for the help. 

  • Alex Jafari said:
    undefined first referenced
    symbol in file
    --------- ----------------
    _EZDSP5535_init ./csl_usb_iso_fullspeed_example.obj
    _EZDSP5535_waitusec ./csl_usb_iso_fullspeed_example.obj

    You are most likely missing some board support library that defines these symbols. Check you project settings, make sure all the libraries needed for the project are properly referenced with correct paths. if you are not sure which library you need, check the documentation for the examples.

    Thanks

    ki

  • Thanks a lot Ki. 

    I added ezdsp5535bsl.lib to the project and now everything works well. 

    -A