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.

TMS320VC5502: CCS3.3 PLA compile error

Part Number: TMS320VC5502
Other Parts Discussed in Thread: CCSTUDIO

Hi.

I took over the project.

The project is made with Code Composer Studio 3.1.

I have newly installed the Code Composer Studio 3.3 PLA.

I have 2 compile errors.

I need to install any other tools or header files ?

(1)

[main.c] "C:\CCStudio_v3.3PLA\C5500\cgtools\bin\cl55" -g -q -fr"./Debug" -fs"./Debug" -ft"./Debug" -fb"./Debug" -ff"./Debug" -i"C:/CCStudio_v3.3PLA/C5500/dsplib/include" -d"_DEBUG" -d"CHIP_5502" -d"SET_S01" -d"SYNC_LEDD" -ml -v5502 -@"Debug.lkf" "main.c"
"main.c", line 264: error: identifier "CLKMD0" is undefined

"main.c", line 264: error: struct "<unnamed>" has no field "clkmd0"

(2)

[Uart_DMAcfg.s55] "C:\CCStudio_v3.3PLA\C5500\cgtools\bin\cl55" -g -q -fr"./Debug" -fs"./Debug" -ft"./Debug" -fb"./Debug" -ff"./Debug" -i"C:/CCStudio_v3.3PLA/C5500/dsplib/include" -d"_DEBUG" -d"CHIP_5502" -d"SET_S01" -d"SYNC_LEDD" -ml -v5502 -@"Debug.lkf" "Uart_DMAcfg.s55"
"Uart_DMAcfg.s55", ERROR! at EOF: [E0300] The following symbols are undefined:
1 Assembly Error, No Assembly Warnings
_CLK_TSSR_REG

Thanks in advance.

  • Hi Yoshiyuki,

    It looks the include paths in the new project are incorrect. Please compare the include paths in the original and new CCS projects to ensure the paths in the new project are correct.

    Regards,
    Frank

  • Hi Frank.

    Thank you for your comment.

    I compared .pjt file, and I found the following text in original project.

    ["main.c" Settings: "Debug"]
    Options="Compiler" +{-i"C:\CCStudio_v3.1\C5500\dsplib\include"} -{-i"C:\ticcsv220\c5500\dsplib\include"}

    Perhaps Code Composer Studio 2 is required to compile  the project ???

    However, there is no installer Code Composer Studio 2.

    Thanks in advance.

  • Hi Yoshiyuki,

    This means there is a dependency on C55x DSPLIB.

    You don't need CCS 2 for DSPLIB. DSPLIB can be downloaded from this location: https://www.ti.com/tool/SPRC100.

    After installing DSPLIB, make sure you update your include paths to point to the install location.

    Regards,
    Frank

  • Hi Frank.

    Thank you for your comment.

    I installed SPRC100-C55_DSPLIB-03.00.00.03-Setup.exe.

    And I changed Build Options

    Compiler -> Preprocessor -> include Search Path:

    C:\CCStudio_v3.3PLA\C5500\dsplib\include

    But, The complie error is not changed.

    Thanks in advance.

  • Hi Yoshiyuki,

    Does your original Code Composer Studio 3.1 project build? Are the SW packages on which this project depends installed on your PC?

    main.c", line 264: error: identifier "CLKMD0" is undefined

    If this symbol isn't defined locally, then the definition should be coming from an include file. What files are included in main.c?

    "main.c", line 264: error: struct "<unnamed>" has no field "clkmd0"

    What is the unnamed structure? Where is the unnamed structure defined?

    [Uart_DMAcfg.s55] "C:\CCStudio_v3.3PLA\C5500\cgtools\bin\cl55" -g -q -fr"./Debug" -fs"./Debug" -ft"./Debug" -fb"./Debug" -ff"./Debug" -i"C:/CCStudio_v3.3PLA/C5500/dsplib/include" -d"_DEBUG" -d"CHIP_5502" -d"SET_S01" -d"SYNC_LEDD" -ml -v5502 -@"Debug.lkf" "Uart_DMAcfg.s55"
    "Uart_DMAcfg.s55", ERROR! at EOF: [E0300] The following symbols are undefined:
    1 Assembly Error, No Assembly Warnings
    _CLK_TSSR_REG

    If this symbol isn't defined locally, then the definition should be coming from an include file. What files are included in Uart_DMAcfg.s55?

    Your command lines only show a single include path: -i"C:/CCStudio_v3.3PLA/C5500/dsplib/include". Does the original CCS project get include files from somewhere else?

    Another possibility is your include files depend on a compiler pre-define (e.g. -d"CHIP_5502"). Do you have the same pre-defines in the original and new CCS projects?

    Regards,
    Frank

  • Hi Frank.

    Does your original Code Composer Studio 3.1 project build?

    No. I don't have Code Composer Studio 3.1.

    If this symbol isn't defined locally, then the definition should be coming from an include file. What files are included in main.c?

    The include files are as follows.

    #include <std.h>
    #include <swi.h>
    #include <tsk.h>
    #include <log.h>

    #include <csl.h>
    #include <csl_pll.h>
    #include <csl_dma.h>
    #include <csl_uart.h>
    #include <csl_mcbsp.h>
    #include <csl_gpt.h>
    #include <csl_gpio.h>
    #include <csl_gpio5502.h>
    #include <csl_mcbsp.h>
    #include <csl_i2c.h>
    #include <csl_emif.h>
    #include <csl_chip.h>
    #include <csl_wdtim.h>

    What is the unnamed structure? Where is the unnamed structure defined?

    The structure is "PLL_Config".
    I find a define of the structure "PLL_Config" in "csl_pllB.h".
    But, there in no member named "clkmd0".

    source code:
      CLKMD0 = pcfg->clkmd0;

    If this symbol isn't defined locally, then the definition should be coming from an include file. What files are included in Uart_DMAcfg.s55?

    .include Uart_DMAcfg.h55
    and many *.h55 files.

    I find "_CLK_TSSR_REG" and "_CLK_TSSR_REGS" in "clk5502.h55" at
    "C:\CCStudio_v3.3PLA\bios_5_33_05\packages\ti\bios\include".

    After changing "_CLK_TSSR_REG" to "_CLK_TSSR_REGS", the error disappeared.
    Is this change correct?

    Your command lines only show a single include path: -i"C:/CCStudio_v3.3PLA/C5500/dsplib/include". Does the original CCS project get include files from somewhere else?

    Another possibility is your include files depend on a compiler pre-define (e.g. -d"CHIP_5502"). Do you have the same pre-defines in the original and new CCS projects?

    CCS compile option are nearly identical.

    original CCS project :

    ["Compiler" Settings: "Debug"]
    Options=-g -q -fr".\Debug" -fs".\Debug" -ft".\Debug" -fb".\Debug" -ff".\Debug" -i"C:\CCStudio_v3.1\C5500\dsplib\include" -d"_DEBUG" -d"CHIP_5502" -d"SET_S01" -d"SYNC_LEDD" -ml -v5502

    new CCS project :

    ["Compiler" Settings: "Debug"]
    Options=-g -q -fr".\Debug" -fs".\Debug" -ft".\Debug" -fb".\Debug" -ff".\Debug" -i"C:\CCStudio_v3.3PLA\C5500\dsplib\include" -d"_DEBUG" -d"CHIP_5502" -d"SET_S01" -d"SYNC_LEDD" -ml -v5502

    Thanks in advance.

  • Hi Yoshiyuki,

    The structure is "PLL_Config".
    I find a define of the structure "PLL_Config" in "csl_pllB.h".
    But, there in no member named "clkmd0".

    This means your application has a dependency on the Chip Support Library (CSL). I'm not clear how the build is is getting the include directory for CSL. Where is "csl_pllB.h" located? Are you using the same CSL version that was used for the CCS 3.1 build?

    The latest CSL can be downloaded here: https://www.ti.com/tool/SPRC133. Please be sure to download the correct version. For C5502, this would be C55XCSL-SPRC133.

    I find "_CLK_TSSR_REG" and "_CLK_TSSR_REGS" in "clk5502.h55" at
    "C:\CCStudio_v3.3PLA\bios_5_33_05\packages\ti\bios\include".

    It appears your application also has a dependency on DSPBIOS.

    After changing "_CLK_TSSR_REG" to "_CLK_TSSR_REGS", the error disappeared.
    Is this change correct?

    Probably this is correct. Are you using the same DSPBIOS version that was used for the CCS 3.1 build?

    You can obtain different versions of DSPBIOS here: https://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/bios/dspbios/index.html

    Regards,
    Frank

  • Hi Frank.

    Chip Support Library(CSL) and DSP/BIOS are installed while I installed CCS3.3 at the same time.

    Are you using the same DSPBIOS version that was used for the CCS 3.1 build?

     There is a comment about version in the .lst file of original project.

    ; "@(#) DSP/BIOS 4.90.270 01-13-05 (barracuda-o07)"

    The version in my environment is 5.33.05.

    ( C:\CCStudio_v3.3PLA\bios_5_33_05 )

    Thanks to give me a download link.

    But there is only a new version.

    I sent a message to request download link of CCS3.1 and CCS2.2.

    Please check the meesage.

    Thanks in advance.

  • Hi Yoshiyuki,

    I sent a message to request download link of CCS3.1 and CCS2.2.

    Unfortunately, these versions of CCS aren't available for download. Please see: https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/920465/ccs-ccstudio3-ccs-3-1-download

    You'll need to update your application to use publicly available versions of tools (CSL,DSPBIOS,DSPLIB,CCS) you don't have available.

    You might consider updating to the latest tools versions. Please see: https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/981570/question-about-most-up-to-date-ccs-and-software-components-to-install-for-dsp-bios-and-c55xx-devices/3626457#3626457

    Regards,
    Frank