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.
Tool/software: Code Composer Studio
Hello,
I am trying to build a project provided by TI "OMAPL138-DSP-LED-v4.zip".
The linker cmd is given below,
/*****************************************************************************
* linker command file for OMAP-L138 test code.
*
* © Copyright 2009, Logic Product Development, Inc. All Rights Reserved.
******************************************************************************/
-l rts67plus.lib
-stack 0x00000800
-heap 0x00000800
MEMORY
{
dsp_l2_ram: ORIGIN = 0x11800000 LENGTH = 0x00040000
entry_point: ORIGIN = 0x80010000 LENGTH = 0x00000080
shared_ram: ORIGIN = 0x80010080 LENGTH = 0x00007F80
external_ram: ORIGIN = 0xC0000000 LENGTH = 0x08000000
arm_local_ram: ORIGIN = 0xFFFF0000 LENGTH = 0x00002000
}
SECTIONS
{
.text:_c_int00 > entry_point
.cinit > shared_ram
.text > shared_ram
.const > shared_ram
.bss > shared_ram
.far > shared_ram
.switch > shared_ram
.stack > shared_ram
.data > shared_ram
.sysmem > shared_ram
.cio > shared_ram
}
I am getting an error regarding "rts67plus.lib" while building the project.
The error is given below,
"object files have incompatible formats ("C:/ti/ccsv7/tools/compiler/ti-cgt-c6000_8.2.2/lib/rts67plus.lib<boot.obj>" = TI-COFF, "./main.obj" = ELF). Please see the 'C6000 EABI Migration' guide at processors.wiki.ti.com/.../C6000_EABI_Migration null: object files have incompatible formats ("C:/ti/ccsv7/tools/compiler/ti-cgt-c6000_8.2.2/lib/rts67plus.lib<boot.obj>" = TI-COFF, "./main.obj" = ELF). Please see the 'C6000 EABI Migration' guide at processors.wiki.ti.com/.../C6000_EABI_Migration "
Is it important to include this library file in the given project. Can we just ignore it or remove this line from the linker command file?
Thanks.
Awais Khan said:Is it important to include this library file in the given project.
Yes. This library includes the startup code, and the standard runtime-support functions like strcpy.
I recommend you remove this line from the linker command file ...
Awais Khan said:-l rts67plus.lib
Then, at the very end of the linker invocation, add ...
-l libc.a
This tells the linker to automatically choose the best RTS library.
If your code is organized as a CCS project ... In the project Properties, category General, set the drop-down box titled Runtime support library to automatic.
Thanks and regards,
-George