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.

moving audio-sample into another project / Linking trouble

Other Parts Discussed in Thread: CCSTUDIO, TMS320C6747, OMAP-L137

Hello

i included the Audio-sample-code of the psp into another project, compiling works without errors, but while Linking i get the following messages :

 undefined          first referenced                                                                                         
  symbol                in file                                                                                              
 ---------          ----------------                                                                                         
 _Aic31_PARAMS      C:\\CCStudio_v3.3\\MyProjects\\network _ sound\\network\\client\\evmomapl137\\debug\\audioSample_main.obj
 _Aic31_init                C:\\CCStudio_v3.3\\MyProjects\\network _ sound\\network\\client\\evmomapl137\\debug\\audioSample_main.obj
 _Audio_PARAMS      C:\\CCStudio_v3.3\\MyProjects\\network _ sound\\network\\client\\evmomapl137\\debug\\audioSample_main.obj
 _Audio_init                C:\\CCStudio_v3.3\\MyProjects\\network _ sound\\network\\client\\evmomapl137\\debug\\audioSample_main.obj
 _Mcasp_PARAMS     C:\\CCStudio_v3.3\\MyProjects\\network _ sound\\network\\client\\evmomapl137\\debug\\audioSample_main.obj
 _Mcasp_init               C:\\CCStudio_v3.3\\MyProjects\\network _ sound\\network\\client\\evmomapl137\\debug\\audioSample_main.obj
 _Psc_ModuleClkCtrl  C:\\CCStudio_v3.3\\MyProjects\\network _ sound\\network\\client\\evmomapl137\\debug\\audioSample_main.obj
 _configureAudio        C:\\CCStudio_v3.3\\MyProjects\\network _ sound\\network\\client\\evmomapl137\\debug\\audioSample_main.obj

 and for each of these symbols something like the following error:

 error: unresolved symbols remain
"audioSample_main.c", line 108: warning: relocation from function "main" to
   symbol "_configureAudio" overflowed; the 31-bit relocated address 0xcffdcc60
   is too large to encode in the 21-bit signed PC-Relative field (type =
   'R_C60PCR21' (82), file = "C:\\CCStudio_v3.3\\MyProjects\\network _
   sound\\network\\client\\evmomapl137\\debug\\audioSample_main.obj", offset =
   0x00000020, section = ".text")

To me it looks like the audioSample_main.obj does not contain the information what sourcecode has to be connected with the symbols of the procedures.

 ( Within the original project audioSample everything works fine. i am using CCS 3.3 to program the DSP of the OMAP-L137 TMS320C6747)

Can someone guess what is causing this problem?

best regards Rico

  • within the map-file the following code can be found :

    UNDEFED    _Aic31_PARAMS
    UNDEFED    _Aic31_init
    UNDEFED    _Audio_PARAMS
    UNDEFED    _Audio_init
    UNDEFED    _Mcasp_PARAMS
    UNDEFED    _Mcasp_init
    UNDEFED    _Psc_ModuleClkCtrl
    UNDEFED    _configureAudio

    while in the correct working project, they are given an adress

  • i tried to rebuild the sample project, using the source-code of the Audio-sample of the PSP.I included the source-code-files into a newly created,empty project and created the DSP/BIOS-Configuration-File on my own. I even copied the compiler and Linker parameters. But even this resulting project, which looks exactly like the sample project, results in the explained mistakes while linking.

    In my opinion it looks like there is a (for me) hidden information, that causes the sample-project to compile and link correctly, while my own projects do not.

    Or the mistake is somewhere hidden in the DSP/BIOS-File, because this is "selfmade".

    i would appreciate a hint where to find this, or maybe what else could cause this..

    best regards

  • Hi,

    Your project is unable to find the required libraries.

    check the following in your project file

    1. you have added the PSP drivers installation directory to your search path. (you have to give this path based on your installation directory)

    2. The linker command file is included. (audioSample_debug.cmd)

    regards,

    imtiaz