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.
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
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 said: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 said: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