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.

CCS V5 symbol "_c_int00" redefined error (also "__stack")

HELP! How do I resolved these 2 errors:

error #10056: symbol "_c_int00" redefined: first defined in "P:/Jobs/1311 DSP

   PMC/Eng/SE/famularo/TestBSP/Code/lib/dsppmc_preBoot_sdram.obj"; redefined in

   "C:\ti\ccsv5\tools\compiler\c6000_7.3.4\lib\rts6700.lib<boot.obj>"

error #10056: symbol "__stack" redefined: first defined in "P:/Jobs/1311 DSP

   PMC/Eng/SE/famularo/TestBSP/Code/lib/dsppmc_preBoot_sdram.obj"; redefined in

   "C:\ti\ccsv5\tools\compiler\c6000_7.3.4\lib\rts6700.lib<boot.obj>"

NOTE: dsppmc_preBoot_sdram.obj is user written and contained within a linked in library.

  • The error appears when the linker sees two definitions for symbols, in this case one in dsppmc_preBoot_sdram.obj and another from the boot.obj in the TI runtime library. 

    donna famularo said:
    NOTE: dsppmc_preBoot_sdram.obj is user written and contained within a linked in library.

    Do you mean that dsppmc_preBoot_sdram.obj is part of an archive library and the library is being passed to the linker?

    Can you copy and paste the full output of the CCS build console to a text file and attach it here? From that we can understand what objects/libraries are being passed to the linker and in what order. Also please provide the exact version of CCSv5 are you using.

  • I am using CCS V5.2.0.00069.
    I don't know how to attach the text file with the build output - please tell me how.
  • donna famularo said:
    I don't know how to attach the text file with the build output - please tell me how.

    After you perform the build in CCS, copy and paste the entire contents of the CCS build console to a text file.

    To attach the file when replying to a post, click on Reply, then click on "Use rich formatting". This editor should have a button for attaching files.

  • Looking at the order of objects in the linker command line, I see dsppmc_preBoot_sdram.obj specified after rts6700.lib. Try passing dsppmc_preBoot_sdram.obj before rts6700.lib so the symbols are resolved from the .obj file only. You can control the order by going to Project Properties->Build->Link Order tab. Here you can add the .obj file and rts lib and make sure the .obj is placed higher than the rts lib.

    Let us know if this helps address the error.

  • WOO HOO !!!!! This worked. Thanks, your help is greatly appreciated.

    Now all I have are the two warnings #10247-D: creating output section ".preboot" without a SECTIONS specification

    and #10210-D: creating ".stack" section with default size of 0x400; use the .stack option to change the default size.

    I know that I have to setup SECTIONS via the Memory Section Manager

    In my CCS V3.1 project I had 5 sections (IRAM, PREBOOT, PROGRAM, SDRAM, and STACK).

    Do you know how I access the Memory Sections Manager in CCS V5.2 to do this?

    Thanks again.

  • donna famularo said:

    Do you know how I access the Memory Sections Manager in CCS V5.2 to do this?

    I answered this in your other forum post. Basically, open the DSP/BIOS configuration tool by double-clicking on the .tcf file in your project. From there, under System, there should be MEM-Memory Section Manager. You can right-click on that to insert a new memory region and then edit its properties.

  • Thanks - Sorry I missed your answer to my other post.

    However, I do not have a TCF file in my project.  I have a CDB file from my CCS V3.1 project.  Reminder: I imported from CCS V3.1 to CCS V 5.2.

    When I double-click on the CDB file it asks for the installation directory of my XDC Tools, I enter it and then it says "Unable to create BIOS Config Server" in a "ScriptPane" window, I click OK and then CCS hangs up forever.

  • donna famularo said:
    However, I do not have a TCF file in my project.  I have a CDB file from my CCS V3.1 project.  Reminder: I imported from CCS V3.1 to CCS V 5.2.

    The CDB file needs to first be converted to TCF when you migrate from BIOS 4.9x to 5.x. Please see this wiki page for more information:

    If you run into issues during the migration,  I would suggest starting a new thread in the TI-RTOS forum.