Tool/software: Code Composer Studio
Hi,
We are porting our current project on the TMS570LS3137 microcontroller.
We built one library which we called as "FWK" on the TMS570LS3137. This FWK is a separate CCS project to create a library file for TMS570LS3137 microcontroller. While creating library it is not giving any error.
We are linking this FWK library to another TMS570LS3137 based CCS project. Let's call it master project.
When we build this master project with "FWK" library linked, it gives following error.
"C:\\ti\\ccsv6\\utils\\bin\\gmake" -j 4 all -O
'Building target: CBK_LAD01_ARM.out'
'Invoking: ARM Linker'
'Flags: -mv7R4 --code_state=32 --float_support=VFPv3D16 -g --gcc --define=__TMS570__ --diag_wrap=off --diag_warning=225 --display_error_number --abi=eabi --enum_type=packed --align_structs=4 --printf_support=full -z -m"CBK_LAD01_ARM.map" --stack_size=0x800 --heap_size=0x800 -i"C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include" -i"C:/KBData/BhushanP/REPO_NYAB_CCBIII_TMS570/Code/branches/Bhushan/CCA_TMS570/Trunk_Work_ECAL/TMS570_Workspace/CBK_LAD01_ARM/FWK/_Deployment/LAD" -i"C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/lib" --reread_libs --diag_wrap=off --warn_sections --display_error_number --xml_link_info="CBK_LAD01_ARM_linkInfo.xml" --rom_model --be32'
"C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/bin/armcl" -@"ccsLinker.opt" -o "CBK_LAD01_ARM.out"
<Linking>
fatal error #10178: attempt to link an object file that is not built for Advanced RISC Machines ARM ("../FWK/_Deployment/LAD/FWKTMS570xx.lib<comcancrc.o>" = Siemens TriCore embedded processor)
gmake[1]: *** [CBK_LAD01_ARM.out] Error 1
>> Compilation failure
makefile:399: recipe for target 'CBK_LAD01_ARM.out' failed
gmake: *** [all] Error 2
makefile:395: recipe for target 'all' failed
It looks like that it is giving an error for FWK library for specific "comcancrc.o" which is not built for ARM for. But when we are creating a separate FWK library for TMS570LS3137 it is not giving any error.
Could you please help us to resolve this issue.
I have attached project properties of FWK and Master Project.
FWK Library Properties:
Master Project Properties:
Both projects using same following CCS version.
Code Composer Studio
Version: 6.2.0.00050
(c) Copyright Texas Instruments, 2014. All rights reserved.
Visit http://www.ti.com