• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Embedded Software » BIOS » BIOS forum » stack_size redefined and undefined
Share
BIOS
  • Forum
  • Announcements
Options
  • Subscribe via RSS

Forums

stack_size redefined and undefined

This question is answered
junfeng zhang
Posted by junfeng zhang
on Apr 06 2012 01:36 AM
Prodigy30 points

Hello everyone,I have a problem need your guiding,the problem is shown below

Development environment:CCS3.3.82+xds560plus;

The chip is OMPAL138,but I only use the DSP CORE c6748,ARM part is not used;With DSP/BIOS SYSTEM bios_5.41.02.14;compiler is V6.1.11;

Building is well,but in the linking progress,the error is happened shown below

--------------------------------------------------------------------------------------------------------------------------------------------------------------
[Linking...] "C:\Program Files\Texas Instruments\C6000 Code Generation Tools 6.1.11\bin\cl6x" -@"Debug.lkf"
<Linking>
error: symbol "__stack" redefined: first defined in "C:/Program Files/Texas
   Instruments/C6000 Code Generation Tools 6.1.11/lib/rts67plus.lib<boot.obj>";
   redefined in
   "C:/CCStudio_v3.3/bios_5_41_02_14/packages/ti/bios/lib/bios.a674<boot.o674>"
error: symbol "_c_int00" redefined: first defined in "C:/Program Files/Texas
   Instruments/C6000 Code Generation Tools 6.1.11/lib/rts67plus.lib<boot.obj>";
   redefined in
   "C:/CCStudio_v3.3/bios_5_41_02_14/packages/ti/bios/lib/bios.a674<boot.o674>"

 undefined    first referenced                                                                                
  symbol          in file                                                                                     
 ---------    ----------------                                                                                
 __STACK_SIZE C:/Program Files/Texas Instruments/C6000 Code Generation Tools 6.1.11/lib/rts67plus.lib<boot.obj>

error: unresolved symbols remain
error: errors encountered during linking; "./Debug/138_dm9000RJ45.out" not
   built

>> Compilation failure

Build Complete,
  1 Errors, 11 Warnings, 0 Remarks.

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

In the file dsplinker.cmd    stack is defined as:—stack  0x00000800;

In the .tcf file of BIOS system the  stack size is defined  0x0400;

Wish your guiding,thanks

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Steven Connell
    Posted by Steven Connell
    on Apr 09 2012 16:06 PM
    Mastermind20540 points

    Hi junfeng zhang,

    Can you please zip up and attach your entire (partially built) project to this post?

    Thanks,

    Steve

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • junfeng zhang
    Posted by junfeng zhang
    on Apr 10 2012 03:50 AM
    Prodigy30 points

    5241.errorPro.rar

    Hi Steve

    I have attached the whole file to this topic.

    I removed the sentence "-l rts67plus.lib" in the dsplinker.cmd ,then the two error is fixed,but the last error about _stack_size remain exists.Please help to check,thanks!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Steven Connell
    Posted by Steven Connell
    on Apr 11 2012 15:49 PM
    Verified Answer
    Verified by junfeng zhang
    Mastermind20540 points

    Hi junfeng zhang,

    I traced the error to the following line of code in your file "dsplink.cmd"

    .stack      >   L3_CBA_RAM

    I updated that file as follows and the application built successfully:

    /*
     *  Linker command file
     *
     */

     -heap            0x00000800

    SECTIONS
    {
        .bss        >   L3_CBA_RAM
        .cinit      >   L3_CBA_RAM
        .cio        >   L3_CBA_RAM

        .const      >   L3_CBA_RAM
    //    .stack      >   L3_CBA_RAM
        .sysmem     >   L3_CBA_RAM

    .text       >   L3_CBA_RAM
        .DRAM       >   L3_CBA_RAM
        .far        >   DDR
        .switch     >   L3_CBA_RAM
        .aemif_mem  >   AEMIF
        .vecs       >   L3_CBA_RAM
        .buffer        >    DDR
    }

    Steve

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • junfeng zhang
    Posted by junfeng zhang
    on Apr 12 2012 00:37 AM
    Prodigy30 points

    Hello Steve,

    It is ok to use this method,thanks!

    junfeng zhang

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use