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 failuregmake: *** [fff.out] Error 1gmake: Target `all' not remade because of errors.Build complete for project fff
------------------------------------------------------------------
project type: C2000device variant : TMS320F2812project 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 specificationwarning: creating output section ".sysmem" without a SECTIONS specificationwarning: creating ".stack" section with default size of 0x400; use the -stack option to change the default sizewarning: 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
=========
thanks
sai
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 neelamwarning: creating output section ".cio" without a SECTIONS specificationwarning: 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 neelamwarning: creating ".stack" section with default size of 0x400; use the -stack option to change the default sizewarning: 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 ModeratorPlease 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.