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.

Undefined Symbol errors from .cmd file in CCS V3.3

Other Parts Discussed in Thread: TMS320C6720

Hi,

I'm having issues with building an old project using CCS V3.3. All of the files in my project compile correctly until it gets to one .cmd file where every symbol has an error that says "Undefined symbol". Is there something special I need to do to get that file to compile?

Thanks

  • Hi Daniel,

    symbol has an error that says "Undefined symbol"

    This is a fairly common linker error. Please see the below link for more details:

    https://software-dl.ti.com/ccs/esd/documents/dmed/HTML/10234.html

    Thanks

    ki

  • This is the syntax of the statement that is throwing an error. There are other variables in the same file that are written in the same way but don't give an error when the project is built. Because of this, I'm not sure that I'm missing a library file but I don't know what the issue would be.

  • Does your project use DSP/BIOS? And if so, are you including the necessary files for it?

  • Yes it does use DSP/BIOS and it includes a .tcf file. Are there other files that need to be included?

  • What are all the error messages? Please copy and paste them to a text file and attach it to this thread

  • Here are the errors

    1464.cc_build_Debug.log
    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    ------------------------- Tahiti_MainFwr.pjt - Debug -------------------------
    [Linking...] "C:\CCStudio_v3.3PLA\C6000\cgtools\bin\cl6x" -@"Debug.lkf"
    <Linking>
    "Tahiticfg.cmd", line 186: warning: no matching section
    "Tahiticfg.cmd", line 215: warning: no matching section
    "Tahiticfg.cmd", line 222: warning: no matching section
    "Tahiticfg.cmd", line 226: warning: no matching section
    "Tahiticfg.cmd", line 258: warning: no matching section
    "Tahiticfg.cmd", line 262: warning: no matching section
    "Tahiticfg.cmd", line 266: warning: no matching section
    "Tahiticfg.cmd", line 270: warning: no matching section
    "Tahiticfg.cmd", line 274: warning: no matching section
    "Tahiticfg.cmd", line 278: warning: no matching section
    "Tahiticfg.cmd", line 315: warning: no matching section
    "Tahiticfg.cmd", line 339: warning: no matching section
    "Tahiticfg.cmd", line 343: warning: no matching section
    "Tahiticfg.cmd", line 347: warning: no matching section
    "Tahiticfg.cmd", line 351: warning: no matching section
    "Tahiticfg.cmd", line 355: warning: no matching section
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Please also provide the generated Debug.lkf file. 

    Thanks

  • I transferred it to a text document so I could upload it

    3700 Debug.txt
    Fullscreen
    1
    2
    3
    4
    5
    6
    -z -c -m"./Debug/Tahiti_MainFwr.map" -o"./Debug/Tahiti_MainFwr.out" -w -x -i"./Libraries" -i"C:/CCStudio_v3.3PLA/C6000/csl/lib" -i"C:/CCStudio_v3.3PLA/C6000/xdais/lib" -i"C:/CCStudio_v3.3PLA/bios_5_33_05/packages/ti/bios/lib" -i"C:/CCStudio_v3.3PLA/bios_5_33_05/packages/ti/rtdx/lib/c6000" -i"C:/CCStudio_v3.3PLA/C6000/cgtools/lib" -priority
    "C:\Users\Daniel.Boland\Documents\QARs\3700\Main Firmware\IRAM.cmd"
    "C:\Users\Daniel.Boland\Documents\QARs\3700\Main Firmware\Tahiti.cmd"
    "C:\Users\Daniel.Boland\Documents\QARs\3700\Main Firmware\Libraries\csl_C672x_03_00_09_00\dsp\lib\csl_C6727.lib"
    "C:\Users\Daniel.Boland\Documents\QARs\3700\Main Firmware\PatchDspRom\applySystemPatch.obj"
    "C:\Users\Daniel.Boland\Documents\QARs\3700\Main Firmware\PatchDspRom\c672xSystemPatchV2_00_00.lib"
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • I believe the issue is related to DSP/BIOS build issue. When you build the BIOS tcf file, it should generate the additional required files for the build. I'm not sure if they are getting generated properly in your build? In any case this is beyond my area of expertise. I will bring this thread to the attention of the device experts for further suggestions

    Thanks

    ki

  • Thanks for your help

  • Hi Daniel,

    What device do you build the CCS project for?

  • The device we are using the CCS project for is the TMS320C6720

  • Hello Daniel,

    Please note that TMS320C6720 is an older part. Our team no longer has hardware or software expertise on this part, so any support we can offer will be limited. I am going to send your thread to another team member with experience in TI-RTOS (not DSP/BIOS) to see if they recognize anything. However, they might not be able to offer any additional assistance.

    Regards,

    Nick

  • Hi Daniel,

    Those errors are related to DSP/BIOS. Unfortunately we do not support DSP/BIOS any more and recommend to migrate to SYS/BIOS 6 as documented here.

    Regards,

    Jianzhong

  • Hi Jianzhong,

    I am unable to migrate to SYS/BIOS 6 due to the requirement of using CCSv4 or higher. In order to compile this older part, I have to use CCSv3 since that is the version that was originally used to program the chip. Are there any other resources that you know of that might help me figure out these issues?

    Thanks

  • I transferred it to a text document so I could upload it

    In the Debug.lkf I noticed there are some spaces in one of the directories : Main Firmware

    Spaces in pathnames can cause issues for the later generation SYS/BIOS tools, and not sure how well the DSP/BIOS tools handle them.

    Maybe worth trying to rename the directory to remove the spaces.

    Admittedly this is just a guess as I don't use CCS 3.3 nor DSP/BIOS. 

  • Hi Chester,

    I tried changing the directory to remove all spaces, but that didn't seem to make a difference and I'm still getting all of the same errors. Do you think it might have something to do with the syntax of some of these commands? It looks like every error points to a line in the .cmd file that includes a "*". I'm not very familiar with this syntax but I feel like I am missing something since all of the errors have that in common.

    For example it points to line 186 saying there is no matching section.

    Thanks

  • I was somehow able to find some files that were missing from the project in a location I have never checked before and that seemed to fix almost all of my issues. Thank you all for your help