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.

c5509 error: symbol referencing errors - './Debug/dsk_app.out' not built please HELP

Other Parts Discussed in Thread: CCSTUDIO

Hello,

I am using the C5509 with CCS 3.3 and am trying to build the project "dsk_app.pjt" and when it is trying to link it finds an error:

[Linking...] "C:\CCStudio_v3.3\C5500\cgtools\bin\cl55" -@"Debug.lkf"
<Linking>

undefined                        first referenced
 symbol                              in file
---------                        ----------------
_I2C_write                       C:\\CCStudio_v3.3\\boards\\dsk5509a_v1\\examples\\dsk_app\\Debug\\aic23.obj
_I2C_setup                       C:\\CCStudio_v3.3\\boards\\dsk5509a_v1\\examples\\dsk_app\\Debug\\aic23.obj
_IRQ_clear                       C:\\CCStudio_v3.3\\boards\\dsk5509a_v1\\examples\\dsk_app\\Debug\\dsk_app.obj
_DMA_config                      C:\\CCStudio_v3.3\\boards\\dsk5509a_v1\\examples\\dsk_app\\Debug\\dsk_app.obj
_MCBSP_open                      C:\\CCStudio_v3.3\\boards\\dsk5509a_v1\\examples\\dsk_app\\Debug\\dsk_app.obj
_MCBSP_read16                    C:\\CCStudio_v3.3\\boards\\dsk5509a_v1\\examples\\dsk_app\\Debug\\dsk_app.obj
_MCBSP_start                     C:\\CCStudio_v3.3\\boards\\dsk5509a_v1\\examples\\dsk_app\\Debug\\dsk_app.obj
_IRQ_globalEnable                C:\\CCStudio_v3.3\\boards\\dsk5509a_v1\\examples\\dsk_app\\Debug\\dsk_app.obj
_IRQ_globalDisable               C:\\CCStudio_v3.3\\boards\\dsk5509a_v1\\examples\\dsk_app\\Debug\\dsk_app.obj
_MCBSP_config                    C:\\CCStudio_v3.3\\boards\\dsk5509a_v1\\examples\\dsk_app\\Debug\\dsk_app.obj
_IRQ_enable                      C:\\CCStudio_v3.3\\boards\\dsk5509a_v1\\examples\\dsk_app\\Debug\\dsk_app.obj
_DMA_open                        C:\\CCStudio_v3.3\\boards\\dsk5509a_v1\\examples\\dsk_app\\Debug\\dsk_app.obj
_EMIF_config                     ../../lib/dsk5509bsl.lib
__CSL_init                       ../../lib/dsk5509bsl.lib
_CSL5509A_LIB_                   ../../lib/dsk5509bsl.lib
>>   error: symbol referencing errors - './Debug/dsk_app.out' not built

>> Compilation failure

 

What is wrong???

  • It sounds like you are not linking in the CSL library. Can you make sure to add the appropriate csl library for your device to the CCS Project Build Options under "Include Libraries"?

  • I tried adding the csl5509a.lib file but then I get this error:

    [Linking...] "C:\CCStudio_v3.3\C5500\cgtools\bin\cl55" -@"Debug.lkf"
    <Linking>

    undefined                        first referenced
     symbol                              in file
    ---------                        ----------------
    _CSL5509A_LIB_                   ../../lib/dsk5509bsl.lib
    >>   error: symbol referencing errors - './Debug/dsk_app.out' not built

    >> Compilation failure

     

    So, I tried adding also the dsk5509bsl.lib file to the project, but still no luck. Could the problem be that this project was made in an earlier version of CCS and I'm trying to use it in CCS 3.3??

  • The CSL header files should have definitions for that symbol based on a device definition. In your case, I believe you need a -d"CHIP_5509A" added to your build options. Go to Project->Build Options->Compiler tab, Category:Preprocessor and check that the -d option (Pre-define symbol) has CHIP_5509A

  • Thank you, the path to the .lib files wasnt specified in the build options.