• 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 » Microcontrollers » C2000™ Microcontrollers » C2000 32-bit Microcontrollers Forum » Errors encountered during linking
Share
C2000™ Microcontrollers
  • Forums
  • Announcements
  • E2E Wiki
Options
  • Subscribe via RSS
C2000 Resources
  • Product Folder
  • C2000 Training Portal
  • C2000 Technical Training Catalog
  • C2000 Datasheets, App Notes, User Guides
  • C2000 Hardware Design Kits
  • controlSUITE for C2000 Software Library


  • InstaSPIN Resources
  • What is InstaSPIN?
  • Videos and Support


  • InstaSPIN-FOC and InstaSPIN-MOTION Resources
  • What is InstaSPIN-FOC?
  • What is InstaSPIN-MOTION?
  • Product Folder: F28069F, F28068F, F28062F, F28068M, F28069M
  • User’s Guide
  • Technical User’s Manual
  • Tools
  • Forums

    Errors encountered during linking

    This question is not answered
    Prathamesh dhanpalwar
    Posted by Prathamesh dhanpalwar
    on Apr 16 2012 03:51 AM
    Intellectual410 points

    Hello,

    I am new to microcontrollers programming. I am using C2000 Microcontrollers Development tools with 320 F28069. I could build the example files available in the CCSv5 version. But when I attempted to build my project, I had few errors. They are:

    Description	Resource	Path	Location	Type
    
    

    #10010 errors encountered during linking; ArtificialLimbController_master C/C++ Problem
    unresolved symbols remain		 	C/C++ Problem
    unresolved symbol _RamfuncsLoadEnd, first referenced in ... C/C++ Problem
    unresolved symbol _RamfuncsLoadStart, first referenced in ... C/C++ Problem
    unresolved symbol _RamfuncsRunStart, first referenced in ... C/C++ Problem.
    
    
    How can I fix these issues?.
    Thank you.
    f28069
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • andreas von kaenel
      Posted by andreas von kaenel
      on Apr 17 2012 03:17 AM
      Genius4285 points

      Hi,

      Are you using FLASH? If yes you need to define these symbols in your linker command file as follows:

         ramfuncs                  : LOAD = FLASHAB,
                                     RUN = PRAMM1,
                                     LOAD_START(_RamfuncsLoadStart),
                                     LOAD_END(_RamfuncsLoadEnd),
                                     RUN_START(_RamfuncsRunStart),
                                     PAGE = 0

      where LOAD is the place where you programmed the .text section, and Run is the RAM Section where you want to load the code for runtime. MemCopy function will then copy the code from FLASH to RAM as defined with these symbols.

      Hope this helps

      Andreas

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Prathamesh dhanpalwar
      Posted by Prathamesh dhanpalwar
      on Apr 17 2012 04:44 AM
      Intellectual410 points

      Hello,

      sorry, but I have not completely understood your answer. How can I get the RAM section that I use to load the code for runtime?

      It looks like this

      MEMORY
      {
      PAGE 0 :
      /* Memory (RAM/FLASH/OTP) blocks can be moved to PAGE1 for data allocation */
      RAML0 : origin = 0x008000, length = 0x000800 /* on-chip RAM block L0 */
      RAML1 : origin = 0x008800, length = 0x000400 /* on-chip RAM block L1 */
      RAML3 : origin = 0x009000, length = 0x001000 /* on-chip RAM block L3 */
      OTP : origin = 0x3D7800, length = 0x000400 /* on-chip OTP */

      FLASHH : origin = 0x3D8000, length = 0x004000 /* on-chip FLASH */
      FLASHG : origin = 0x3DC000, length = 0x004000 /* on-chip FLASH */
      FLASHF : origin = 0x3E0000, length = 0x004000 /* on-chip FLASH */
      FLASHE : origin = 0x3E4000, length = 0x004000 /* on-chip FLASH */
      FLASHD : origin = 0x3E8000, length = 0x004000 /* on-chip FLASH */
      FLASHA : origin = 0x3F4000, length = 0x003F80 /* on-chip FLASH */
      CSM_RSVD : origin = 0x3F7F80, length = 0x000076 /* Part of FLASHA. Program with all 0x0000 when CSM is in use. */
      BEGIN : origin = 0x3F7FF6, length = 0x000002 /* Part of FLASHA. Used for "boot to Flash" bootloader mode. */
      CSM_PWL_P0 : origin = 0x3F7FF8, length = 0x000008 /* Part of FLASHA. CSM password locations in FLASHA */

      FPUTABLES : origin = 0x3FD860, length = 0x0006A0 /* FPU Tables in Boot ROM */
      IQTABLES : origin = 0x3FDF00, length = 0x000B50 /* IQ Math Tables in Boot ROM */
      IQTABLES2 : origin = 0x3FEA50, length = 0x00008C /* IQ Math Tables in Boot ROM */
      IQTABLES3 : origin = 0x3FEADC, length = 0x0000AA /* IQ Math Tables in Boot ROM */

      ROM : origin = 0x3FF3B0, length = 0x000C10 /* Boot ROM */
      RESET : origin = 0x3FFFC0, length = 0x000002 /* part of boot ROM */
      VECTORS : origin = 0x3FFFC2, length = 0x00003E /* part of boot ROM */

      PAGE 1 : /* Data Memory */
      /* Memory (RAM/FLASH/OTP) blocks can be moved to PAGE0 for program allocation */
      /* Registers remain on PAGE1 */

      BOOT_RSVD : origin = 0x000000, length = 0x000050 /* Part of M0, BOOT rom will use this for stack */
      RAMM0 : origin = 0x000050, length = 0x0003B0 /* on-chip RAM block M0 */
      RAMM1 : origin = 0x000400, length = 0x000400 /* on-chip RAM block M1 */
      RAML2 : origin = 0x008C00, length = 0x000400 /* on-chip RAM block L2 */
      RAML4 : origin = 0x00A000, length = 0x008000 /* on-chip RAM block L4 merged together with L5, L6 and L7*/
      RAML8 : origin = 0x012000, length = 0x002000 /* on-chip RAM block L8 */
      FLASHB : origin = 0x3F0000, length = 0x004000 /* on-chip FLASH */
      FLASHC : origin = 0x3EC000, length = 0x004000 /* on-chip FLASH */
      CLA1_MSGRAMLOW : origin = 0x001480, length = 0x000080
      CLA1_MSGRAMHIGH : origin = 0x001500, length = 0x000080
      }

      SECTIONS
      {
      /* Allocate program areas: */
      .cinit : > FLASHA PAGE = 0
      .pinit : > FLASHA, PAGE = 0
      .text : > FLASHA PAGE = 0
      codestart : > BEGIN PAGE = 0

      Cla1Prog : LOAD = FLASHD,
      RUN = RAML3,
      LOAD_START(_Cla1funcsLoadStart),
      LOAD_END(_Cla1funcsLoadEnd),
      RUN_START(_Cla1funcsRunStart),
      PAGE = 0

      Cla1ToCpuMsgRAM : > CLA1_MSGRAMLOW, PAGE = 1
      CpuToCla1MsgRAM : > CLA1_MSGRAMHIGH, PAGE = 1

      ramfuncs : LOAD = FLASHD,
      RUN = RAML0,
      LOAD_START(_RamfuncsLoadStart),
      LOAD_END(_RamfuncsLoadEnd),
      RUN_START(_RamfuncsRunStart),
      PAGE = 0

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • andreas von kaenel
      Posted by andreas von kaenel
      on Apr 17 2012 07:37 AM
      Genius4285 points

      Hi,

      I forgot - somewhere in your code you need to define

      extern Uint16 RamfuncsLoadStart;
      extern Uint16 RamfuncsLoadEnd;
      extern Uint16 RamfuncsRunStart;

      to tell the linker, that these symbols are defined somwhere outside your project.

      Prathamesh dhanpalwar
      sorry, but I have not completely understood your answer. How can I get the RAM section that I use to load the code for runtime?

      In your specific case, the code is loaded from FLASHD to RAML0

      Prathamesh dhanpalwar
      ramfuncs : LOAD = FLASHD,
      RUN = RAML0,
      LOAD_START(_RamfuncsLoadStart),
      LOAD_END(_RamfuncsLoadEnd),
      RUN_START(_RamfuncsRunStart),
      PAGE = 0

      BR Andreas

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Prathamesh dhanpalwar
      Posted by Prathamesh dhanpalwar
      on Apr 17 2012 09:49 AM
      Intellectual410 points

      Hi Andreas,

      Ok. Thank you very much for your help. 

      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