• 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 » Development Tools » TI C/C++ Compiler » TI C/C++ Compiler - Forum » Linking error while building example project (Hello world )for TMS320F2812
Share
TI C/C++ Compiler
  • Forum
Options
  • Subscribe via RSS

Linking error while building example project (Hello world )for TMS320F2812

Linking error while building example project (Hello world )for TMS320F2812

This question is answered
sai neelam
Posted by sai neelam
on Aug 16 2012 23:54 PM
Prodigy10 points

Hi,

I am using Codecomposer 4.2 v,tring to build example project (helloworld),errors i am getting is Linking error

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

error: errors encountered during linking; "fff.out" not built

>> Compilation failure
gmake: *** [fff.out] Error 1
gmake: Target `all' not remade because of errors.
Build complete for project fff

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

project type: C2000
device variant : TMS320F2812
project templates: basic example(hello world)

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

========

build log:

**** Build of configuration Debug for project fff ****

C:\Program Files (x86)\Texas Instruments\ccsv4\utils\gmake\gmake -k all
'Building file: ../hello.c'
'Invoking: Compiler'
"C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c2000/bin/cl2000" -v28 -mt -ml -g --include_path="C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c2000/include" --diag_warning=225 --preproc_with_compile --preproc_dependency="hello.pp" "../hello.c"
'Finished building: ../hello.c'
' '
'Building target: fff.out'
'Invoking: Linker'
"C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c2000/bin/cl2000" -v28 -mt -ml -g --diag_warning=225 -z -m"fff.map" --warn_sections -i"C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c2000/lib" -i"C:/Program Files (x86)/Texas Instruments/ccsv4/tools/compiler/c2000/include" --reread_libs --rom_model -o "fff.out" "./hello.obj" -l"libc.a" "../2812_RAM_lnk.cmd"
<Linking>
warning: creating output section ".cio" without a SECTIONS specification
warning: creating output section ".sysmem" without a SECTIONS specification
warning: creating ".stack" section with default size of 0x400; use the -stack
option to change the default size
warning: creating ".sysmem" section with default size of 0x400; use the -heap
option to change the default size
"../2812_RAM_lnk.cmd", line 86: error: placement fails for object ".text", size
0x17d9 (page 0). Available ranges:
PRAMH0 size: 0xffe unused: 0xf89 max hole: 0xf89
error: errors encountered during linking; "fff.out" not built

>> Compilation failure
gmake: *** [fff.out] Error 1
gmake: Target `all' not remade because of errors.
Build complete for project fff

=========

thanks 

sai

TMS320F2812 linking error
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • George Mock
    Posted by George Mock
    on Aug 17 2012 09:42 AM
    Verified Answer
    Verified by George Mock
    Guru51290 points

    The hello world program is simple in terms of what is executed.  But it calls printf.  The printf function can do many things.  It takes lots of code, and thus lots of memory, to implement all that.  Please see this wiki article for more detail.

    sai neelam
    warning: creating output section ".cio" without a SECTIONS specification
    warning: creating output section ".sysmem" without a SECTIONS specification

    The linker is automatically creating these sections for you.  Most importantly, it is placing them in target memory without any direction from you.  It is quite likely they are being put in the wrong place.    

    sai neelam
    warning: creating ".stack" section with default size of 0x400; use the -stack
    option to change the default size
    warning: creating ".sysmem" section with default size of 0x400; use the -heap
    option to change the default size

    These sections are also being placed in target memory without any direction from you.  Further, they may not be the correct size.

    Details on what these sections are for can be found in the section titled Specifying Where to Allocate Sections in Memory in the C2000 compiler manual.  The .cio section is not described there.  The .cio section holds a buffer used by low level IO operations to exchange data between the target and the host.

    All of these things are usually specified in the linker command file.  I suggest you look into why your linker command file is not defining these things.

    Thanks and regards,

    -George


    TI C/C++ Compiler Forum Moderator
    Please click Verify Answer on the best reply to your question.
    The Compiler Wiki answers most common questions.
    Track an issue with SDOWP. Enter your bug id in the "Find Record ID" box.

    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