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.

unresolved symbols C55XX_CONTROLHANDLE_hMcbsp

Other Parts Discussed in Thread: CCSTUDIO

Dear all

 

I tried to convert old projects from Kuo's text book, Real time digital signal processing, into CCS5. However, every proejct uses AIC23 and MCBSP cannot compile.

I keep getting the following message:

 

undefined                   first referenced                                                                

symbol                         in file                                                                   

 ---------                   ----------------                                                              

 _C55XX_CONTROLHANDLE_hMcbsp C:/CCStudio_v3.1/C5500/dsk5510/lib/dsk5510bslx.lib<dsk5510_aic23_opencodec.obj>  

_C55XX_DMA_MCBSP_hMcbsp     C:/CCStudio_v3.1/C5500/dsk5510/lib/dsk5510bslx.lib<dsk5510_aic23_opencodec.obj>  

_MCBSP_read16               C:/CCStudio_v3.1/C5500/dsk5510/lib/dsk5510bslx.lib<dsk5510_aic23_opencodec.obj>  

_MCBSP_start                C:/CCStudio_v3.1/C5500/dsk5510/lib/dsk5510bslx.lib<dsk5510_aic23_opencodec.obj>  

_MCBSP_write16              C:/CCStudio_v3.1/C5500/dsk5510/lib/dsk5510bslx.lib<dsk5510_aic23_registers.obj>

error #10234-D: unresolved symbols remain

error #10010: errors encountered during linking; "toneGen.out" not built

 

I tried everything I know but it still did not work. Could someone help me with this. Thank you.

 

Yours,

LY Shyu

  • Hi Liang-Yu,

    It looks like the path to some of your libraries is incorrect or not input into CCS.  Have a look at the following wiki, check your include paths/variable (in this case under the linker) and please keep us informed.

    http://processors.wiki.ti.com/index.php/Include_paths_and_options

    Best Regards,
    Lisa

  • Dear Lisa:

     

    Thank you for your advise. I tried several things and solved the problem, partially.

    First, the "_C55XX_CONTROLHANDLE_hMcbsp " and "_C55XX_DMA_MCBSP_hMcbsp" were defined in the *cfg_c.c which was generated by the Configuration Tool and came  with the original project. Second, the "_MCBSP_read16", "_MCBSP_start", and "_MCBSP_write16" are functions from "....CCStudio_v3.1\C5500\csl\lib\csl5510PG2_2x.lib."

    After include the lib and the cinfiguration file into my project property and workspace, it completed building the project without error and generated the out file.

    However, when I tried to down load the out file into the DSK, the following messages appeared:

    C55xx_0: File Loader: Data verification failed at address 0x00FFFF00 Please verify target memory and memory map.

    C55xx_0: GEL: File: C:\Users\lshyu.CARDIOVASCULAR\workspace_v5_1\quantAudio\Debug\quantAudio.out: a data verification error occurred, file load failed.

    I think, this is a problem related to linker command file. Help! Again! 

    I am using the "lmk.cmd" in my project property.

     

    Yours,

    LY Shyu

     

  • Hi LY Shyu,

    this could be caused by a few different things.  Could you please check the following and keep us informed

    - are you clock settings in the target configuration file and sdopt file the same?

    - are you using the correct linker command file and GEL file(s)?

    - have you double checked your memory initialization?

    - have you verified your hardware connection?

    Best Regards,
    Lisa

  • Take a look at the linker command file and see if it matches with the memory for the device.  Data verification happens when the program is being loaded.  We read back some of the values to see if what we expected to be written actually was, if it is not then we give the data verification error.

  • Hello,

    I just wanted to check whether there is any update to your enquiry?

    Best Regards,
    Lisa

  • Hi Lisa:

     

    Thank you for your concern.

    In the pass few days, I tried to use different command file to solve the "Data verification" problem.

    When I use the cmd file that came with the original project, I got  75 errors. Please see the attached file.

    Most of the errors are "undefined symbol."  I tried to solve it and failed.

    On the other hand, when I strip the cmd file to the most essential parts, the memory and section. It build without any error and downloaded successfully.

    However, it does not run.

    I am not good at cmd file. Can you or your team help me with it??

    Attached please find the two cmd files and the errors.

     

    Yours,

    LY Shyu

    **** Clean-only build of configuration Debug for project quantAudio ****
    
    C:\ti\ccsv5\utils\bin\gmake -k clean 
    DEL /F  "quantAudio.out"
    �䤣�� C:\Users\lshyu.CARDIOVASCULAR\workspace_v5_1\quantAudio\Debug\quantAudio.out
    DEL /F "src\quantAudio.pp" "src\quantAudioTest.pp" "quantAudiocfg_c.pp" 
    DEL /F "C:\Users\lshyu.CARDIOVASCULAR\workspace_v5_1\quantAudio\src\Debug\quantAudio.obj" "C:\Users\lshyu.CARDIOVASCULAR\workspace_v5_1\quantAudio\src\Debug\quantAudioTest.obj" "C:\Users\lshyu.CARDIOVASCULAR\workspace_v5_1\quantAudio\src\Debug\quantAudiocfg_c.obj" 
    'Finished clean'
    ' '
    
    **** Build Finished ****
    
    **** Build of configuration Debug for project quantAudio ****
    
    C:\ti\ccsv5\utils\bin\gmake -k all 
    'Building file: ../quantAudiocfg_c.c'
    'Invoking: C5500 Compiler'
    "C:/ti/ccsv5/tools/compiler/c5500/bin/cl55" -v5510A --memory_model=large -O2 -g --optimize_with_debug --include_path="C:/ti/ccsv5/tools/compiler/c5500/include" --include_path="D:/Asus C/CCStudio_v3.1/C5500/bios/include" --include_path="D:/Asus C/CCStudio_v3.1/C5500/csl/include" --include_path="C:/Users/lshyu.CARDIOVASCULAR/workspace_v5_1/quantAudio/Debug" --include_path="C:/ti/bios_5_41_11_38/packages/ti/bios/include" --include_path="C:/ti/bios_5_41_11_38/packages/ti/rtdx/include/c5500" --include_path="C:/ti/xdais_7_21_01_07/packages/ti/xdais" --include_path="/include" --include_path="../src" --include_path="D:/shyu/Class Material/2012 Spring/2012 DSPchip/ch03_2ed/experiments/exp3.6.2_quantAudio" --define="_DEBUG" --quiet --display_error_number --diag_warning=225 --ptrdiff_size=32 --algebraic --obj_directory="../src/Debug" --preproc_with_compile --preproc_dependency="quantAudiocfg_c.pp"  "../quantAudiocfg_c.c"
    'Finished building: ../quantAudiocfg_c.c'
    ' '
    'Building file: ../src/quantAudio.c'
    'Invoking: C5500 Compiler'
    "C:/ti/ccsv5/tools/compiler/c5500/bin/cl55" -v5510A --memory_model=large -O2 -g --optimize_with_debug --include_path="C:/ti/ccsv5/tools/compiler/c5500/include" --include_path="D:/Asus C/CCStudio_v3.1/C5500/bios/include" --include_path="D:/Asus C/CCStudio_v3.1/C5500/csl/include" --include_path="C:/Users/lshyu.CARDIOVASCULAR/workspace_v5_1/quantAudio/Debug" --include_path="C:/ti/bios_5_41_11_38/packages/ti/bios/include" --include_path="C:/ti/bios_5_41_11_38/packages/ti/rtdx/include/c5500" --include_path="C:/ti/xdais_7_21_01_07/packages/ti/xdais" --include_path="/include" --include_path="../src" --include_path="D:/shyu/Class Material/2012 Spring/2012 DSPchip/ch03_2ed/experiments/exp3.6.2_quantAudio" --define="_DEBUG" --quiet --display_error_number --diag_warning=225 --ptrdiff_size=32 --algebraic --obj_directory="../src/Debug" --preproc_with_compile --preproc_dependency="src/quantAudio.pp"  "../src/quantAudio.c"
    'Finished building: ../src/quantAudio.c'
    ' '
    'Building file: ../src/quantAudioTest.c'
    'Invoking: C5500 Compiler'
    "C:/ti/ccsv5/tools/compiler/c5500/bin/cl55" -v5510A --memory_model=large -O2 -g --optimize_with_debug --include_path="C:/ti/ccsv5/tools/compiler/c5500/include" --include_path="D:/Asus C/CCStudio_v3.1/C5500/bios/include" --include_path="D:/Asus C/CCStudio_v3.1/C5500/csl/include" --include_path="C:/Users/lshyu.CARDIOVASCULAR/workspace_v5_1/quantAudio/Debug" --include_path="C:/ti/bios_5_41_11_38/packages/ti/bios/include" --include_path="C:/ti/bios_5_41_11_38/packages/ti/rtdx/include/c5500" --include_path="C:/ti/xdais_7_21_01_07/packages/ti/xdais" --include_path="/include" --include_path="../src" --include_path="D:/shyu/Class Material/2012 Spring/2012 DSPchip/ch03_2ed/experiments/exp3.6.2_quantAudio" --define="_DEBUG" --quiet --display_error_number --diag_warning=225 --ptrdiff_size=32 --algebraic --obj_directory="../src/Debug" --preproc_with_compile --preproc_dependency="src/quantAudioTest.pp"  "../src/quantAudioTest.c"
    "../src/quantAudioTest.c", line 84: warning #225-D: function declared implicitly
    'Finished building: ../src/quantAudioTest.c'
    ' '
    'Building target: quantAudio.out'
    'Invoking: C5500 Linker'
    "C:/ti/ccsv5/tools/compiler/c5500/bin/cl55" -v5510A --memory_model=large -O2 -g --optimize_with_debug --define="_DEBUG" --quiet --display_error_number --diag_warning=225 --ptrdiff_size=32 --algebraic --obj_directory="../src/Debug" -z -m"quantAudio.map" -i"C:/ti/ccsv5/tools/compiler/c5500/lib" -i"C:/ti/ccsv5/tools/compiler/c5500/include" -i"C:/ti/bios_5_41_11_38/packages/ti/rtdx/lib/c5500" -i"C:/ti/bios_5_41_11_38/packages/ti/bios/lib" -i"C:/Users/lshyu.CARDIOVASCULAR/workspace_v5_1/quantAudio" -i"D:/shyu/Class Material/2012 Spring/2012 DSPchip/ch03_2ed/experiments/exp3.6.2_quantAudio" -i"/lib" -i"C:/CCStudio_v3.1/C5500/dsk5510/lib" --reread_libs --warn_sections --rom_model -o "quantAudio.out"  "C:/Users/lshyu.CARDIOVASCULAR/workspace_v5_1/quantAudio/src/Debug/quantAudiocfg_c.obj" "C:/Users/lshyu.CARDIOVASCULAR/workspace_v5_1/quantAudio/src/Debug/quantAudioTest.obj" "C:/Users/lshyu.CARDIOVASCULAR/workspace_v5_1/quantAudio/src/Debug/quantAudio.obj" -l"D:\Asus C\CCStudio_v3.1\C5500\csl\lib\csl5510PG2_2x.lib" -l"dsk5510bslx.lib" -l"rts55x.lib" "../csl5510PG2_2x.lib" "../quantAudiocfg.cmd" 
    warning #10286-D: Section ".bios" is found in
       "C:/Users/lshyu.CARDIOVASCULAR/workspace_v5_1/quantAudio/clki.a55l<clk.o55l>
       ", this could cause potential compatibility problem. Please use 4.1.x tools
       or update your DSP BIOS
    "../quantAudiocfg.cmd", line 143: warning #10068-D: no matching section
    "../quantAudiocfg.cmd", line 188: warning #10068-D: no matching section
    "../quantAudiocfg.cmd", line 192: warning #10068-D: no matching section
    "../quantAudiocfg.cmd", line 214: warning #10068-D: no matching section
    "../quantAudiocfg.cmd", line 232: warning #10068-D: no matching section
    "../quantAudiocfg.cmd", line 239: warning #10068-D: no matching section
    "../quantAudiocfg.cmd", line 260: warning #10068-D: no matching section
    "../quantAudiocfg.cmd", line 289: warning #10068-D: no matching section
    "../quantAudiocfg.cmd", line 326: warning #10068-D: no matching section
    warning #10247-D: creating output section "vectors" without a SECTIONS
       specification
    
     undefined          first referenced                                                                 
      symbol                in file                                                                      
     ---------          ----------------                                                                 
     CLK_COUNTSPMS      C:/Users/lshyu.CARDIOVASCULAR/workspace_v5_1/quantAudio/biosi.a55l<biosdata.o55l>
     CLK_INTBIT         C:/Users/lshyu.CARDIOVASCULAR/workspace_v5_1/quantAudio/clki.a55l<clk.o55l>      
     CLK_PRD            C:/Users/lshyu.CARDIOVASCULAR/workspace_v5_1/quantAudio/biosi.a55l<biosdata.o55l>
     CLK_REGS           C:/Users/lshyu.CARDIOVASCULAR/workspace_v5_1/quantAudio/clki.a55l<clk.o55l>      
     CLK_TDDR           C:/Users/lshyu.CARDIOVASCULAR/workspace_v5_1/quantAudio/biosi.a55l<biosdata.o55l>
     CLK_TIMERIFR       C:/Users/lshyu.CARDIOVASCULAR/workspace_v5_1/quantAudio/clki.a55l<clk.o55l>      
     LOG_system         C:/Users/lshyu.CARDIOVASCULAR/workspace_v5_1/quantAudio/biosi.a55l<biosdata.o55l>
     MEM_gNumHeap       C:/Users/lshyu.CARDIOVASCULAR/workspace_v5_1/quantAudio/biosi.a55l<biosdata.o55l>
     PRD_SCALAR         C:/Users/lshyu.CARDIOVASCULAR/workspace_v5_1/quantAudio/biosi.a55l<biosdata.o55l>
     PRD_SWIHANDLE      C:/Users/lshyu.CARDIOVASCULAR/workspace_v5_1/quantAudio/biosi.a55l<biosdata.o55l>
     SYS$config         C:/Users/lshyu.CARDIOVASCULAR/workspace_v5_1/quantAudio/biosi.a55l<biosdata.o55l>
     TSK_idle$stkptr    C:/Users/lshyu.CARDIOVASCULAR/workspace_v5_1/quantAudio/biosi.a55l<biosdata.o55l>
     TSK_idle$sysstkptr C:/Users/lshyu.CARDIOVASCULAR/workspace_v5_1/quantAudio/biosi.a55l<biosdata.o55l>
     _MEM_memtab        C:/Users/lshyu.CARDIOVASCULAR/workspace_v5_1/quantAudio/biosi.a55l<biosdata.o55l>
    
    error #10234-D: unresolved symbols remain
    "../quantAudiocfg.cmd", line 19: error #10104: undefined symbol "DARAM" used in
       expression
    "../quantAudiocfg.cmd", line 21: error #10104: undefined symbol "DARAM" used in
       expression
    "../quantAudiocfg.cmd", line 48: error #10104: undefined symbol "DARAM" used in
       expression
    "../quantAudiocfg.cmd", line 49: error #10104: undefined symbol "SARAM" used in
       expression
    "../quantAudiocfg.cmd", line 50: error #10104: undefined symbol "VECT" used in
       expression
    "../quantAudiocfg.cmd", line 51: error #10104: undefined symbol "SARAM_A" used
       in expression
    "../quantAudiocfg.cmd", line 52: error #10104: undefined symbol "SARAM_B" used
       in expression
    "../quantAudiocfg.cmd", line 53: error #10104: undefined symbol "SDRAM" used in
       expression
    "../quantAudiocfg.cmd", line 54: error #10104: undefined symbol "FLASH" used in
       expression
    "../quantAudiocfg.cmd", line 55: error #10104: undefined symbol "PRD_clock"
       used in expression
    "../quantAudiocfg.cmd", line 56: error #10104: undefined symbol "RTA_fromHost"
       used in expression
    "../quantAudiocfg.cmd", line 57: error #10104: undefined symbol "RTA_toHost"
       used in expression
    "../quantAudiocfg.cmd", line 58: error #10104: undefined symbol "HWI_RESET"
       used in expression
    "../quantAudiocfg.cmd", line 59: error #10104: undefined symbol "HWI_NMI" used
       in expression
    "../quantAudiocfg.cmd", line 60: error #10104: undefined symbol "HWI_INT2" used
       in expression
    "../quantAudiocfg.cmd", line 61: error #10104: undefined symbol "HWI_INT3" used
       in expression
    "../quantAudiocfg.cmd", line 62: error #10104: undefined symbol "HWI_INT4" used
       in expression
    "../quantAudiocfg.cmd", line 63: error #10104: undefined symbol "HWI_INT5" used
       in expression
    "../quantAudiocfg.cmd", line 64: error #10104: undefined symbol "HWI_INT6" used
       in expression
    "../quantAudiocfg.cmd", line 65: error #10104: undefined symbol "HWI_INT7" used
       in expression
    "../quantAudiocfg.cmd", line 66: error #10104: undefined symbol "HWI_INT8" used
       in expression
    "../quantAudiocfg.cmd", line 67: error #10104: undefined symbol "HWI_INT9" used
       in expression
    "../quantAudiocfg.cmd", line 68: error #10104: undefined symbol "HWI_INT10"
       used in expression
    "../quantAudiocfg.cmd", line 69: error #10104: undefined symbol "HWI_INT11"
       used in expression
    "../quantAudiocfg.cmd", line 70: error #10104: undefined symbol "HWI_INT12"
       used in expression
    "../quantAudiocfg.cmd", line 71: error #10104: undefined symbol "HWI_INT13"
       used in expression
    "../quantAudiocfg.cmd", line 72: error #10104: undefined symbol "HWI_INT14"
       used in expression
    "../quantAudiocfg.cmd", line 73: error #10104: undefined symbol "HWI_INT15"
       used in expression
    "../quantAudiocfg.cmd", line 74: error #10104: undefined symbol "HWI_INT16"
       used in expression
    "../quantAudiocfg.cmd", line 75: error #10104: undefined symbol "HWI_INT17"
       used in expression
    "../quantAudiocfg.cmd", line 76: error #10104: undefined symbol "HWI_INT18"
       used in expression
    "../quantAudiocfg.cmd", line 77: error #10104: undefined symbol "HWI_INT19"
       used in expression
    "../quantAudiocfg.cmd", line 78: error #10104: undefined symbol "HWI_INT20"
       used in expression
    "../quantAudiocfg.cmd", line 79: error #10104: undefined symbol "HWI_INT21"
       used in expression
    "../quantAudiocfg.cmd", line 80: error #10104: undefined symbol "HWI_INT22"
       used in expression
    "../quantAudiocfg.cmd", line 81: error #10104: undefined symbol "HWI_INT23"
       used in expression
    "../quantAudiocfg.cmd", line 82: error #10104: undefined symbol "HWI_BERR" used
       in expression
    "../quantAudiocfg.cmd", line 83: error #10104: undefined symbol "HWI_DLOG" used
       in expression
    "../quantAudiocfg.cmd", line 84: error #10104: undefined symbol "HWI_RTOS" used
       in expression
    "../quantAudiocfg.cmd", line 85: error #10104: undefined symbol "HWI_SINT27"
       used in expression
    "../quantAudiocfg.cmd", line 86: error #10104: undefined symbol "HWI_SINT28"
       used in expression
    "../quantAudiocfg.cmd", line 87: error #10104: undefined symbol "HWI_SINT29"
       used in expression
    "../quantAudiocfg.cmd", line 88: error #10104: undefined symbol "HWI_SINT30"
       used in expression
    "../quantAudiocfg.cmd", line 89: error #10104: undefined symbol "HWI_SINT31"
       used in expression
    "../quantAudiocfg.cmd", line 90: error #10104: undefined symbol "LNK_dataPump"
       used in expression
    "../quantAudiocfg.cmd", line 91: error #10104: undefined symbol
       "RTA_dispatcher" used in expression
    "../quantAudiocfg.cmd", line 92: error #10104: undefined symbol "IDL_cpuLoad"
       used in expression
    "../quantAudiocfg.cmd", line 93: error #10104: undefined symbol "LOG_system"
       used in expression
    "../quantAudiocfg.cmd", line 94: error #10104: undefined symbol "IDL_busyObj"
       used in expression
    "../quantAudiocfg.cmd", line 148: error #10104: undefined symbol "CLK_PRD" used
       in expression
    "../quantAudiocfg.cmd", line 149: error #10104: undefined symbol
       "CLK_COUNTSPMS" used in expression
    "../quantAudiocfg.cmd", line 150: error #10104: undefined symbol "CLK_REGS"
       used in expression
    "../quantAudiocfg.cmd", line 151: error #10104: undefined symbol "CLK_USETIMER"
       used in expression
    "../quantAudiocfg.cmd", line 152: error #10104: undefined symbol "CLK_TIMERNUM"
       used in expression
    "../quantAudiocfg.cmd", line 153: error #10104: undefined symbol "CLK_TCR" used
       in expression
    "../quantAudiocfg.cmd", line 154: error #10104: undefined symbol "CLK_TDDR"
    
       used in expression
    >> Compilation failure
    "../quantAudiocfg.cmd", line 170: error #10104: undefined symbol "HWI_INT4"
       used in expression
    "../quantAudiocfg.cmd", line 171: error #10194: symbol "HWI_TINT" used in
       expression before it has been assigned a value
    error #10010: errors encountered during linking; "quantAudio.out" not built
    gmake: *** [quantAudio.out] Error 1
    gmake: Target `all' not remade because of errors.
    
    **** Build Finished ****
    

    5657.quantAudio.rar

  • Hi LY Shyu,

    can you please confirm what BIOS version you are using?  From you log and first post this seems to be a bios version issue.  Bios versions before bios5 can not be imported into CCSv4 or v5 without implementing a few manual changes.

    You need to read and follow these instructions before you can import the project.

    http://processors.wiki.ti.com/index.php/Migrating_from_BIOS_4.9_to_BIOS_5.x

    After this, you should be able to import the project.  You may still need to correct some of the include paths as I previously directed.

    Please give this a try and keep us informed.  It looks like you are working with some very old examples/code.

    Best Regards,
    Lisa

  • Hi Lisa,

     

    Yes, the project I worked with is an example from the 2nd edition of the book, real-time digital signal processing implementations and application, by Kuo, Lee and Tian. The example was developed for CCS2. I tried to make it work using CCS5. The BIOS version I am working with is 5.41.11.38.

    I did follow your suggestion, read through the wiki and followed the instructions before I stop working on the project several weeks ago. But, it did not solve the problem.

     

    Yours,

    LY Shyu

  • Dear LY Shyu,

    did you follow all instructions?  Did you import to v4 first?  I will double check whether there is anything that can be done with these extremely old examples.

    Best Regards,
    Lisa