Other Parts Discussed in Thread: SYSBIOS, OMAPL138
I'm telling CCS to use my own linker script (mylink.cmd) imitating the generated link.cmd, but it seems to conflict with the automatically generated linker script. How do I use only my linker script (mylink.cmd)?
Right-click on project explorer project and select mylink.cmd for Linker command file: in the Properties menu.
TI_04_mylink.cmd shows the contents of mylink.cmd.
BelowBuild of configuration Debug for project bios_6_75_02_00_typical ****
"C:ticcs910ccsutilsbingmake" -k -j 8 all -O Building file: "..
/app.cfg"
Invoking: XDCtools "C:/ti/ccs910/xdctools_3_55_02_22_core/xs" --xdcpath="C:/ti/bios_6_75_02_00 packages/;" xdc.tools.configuro -o configPkg -t tt.targets.arm.elf.Arm9 -p ti.platforms.evmOMAPL138 -r debug -c "C:/ti/ccs910/ccs/ tools/compiler/ti-cgt-arm_19.6.0.STS" --compileOptions "-g" "..
/app.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring app.xe9 from package/cfg/app_pe9.cfg...
generating custom ti.sysbios library makefile ...
Starting build of library sources ...
making D:/ti/workspace_v9/bios_6_75_02_00_typical/src/sysbios/sysbios.ae9...
cle9 C:/ti/bios_6_75_02_00/packages/ti/sysbios/BIOS.c...
asme9 C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/HwiCommon_asm.asm...
asme9 C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/IntrinsicsSupport_asm.asm...
asme9 C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/TaskSupport_asm.asm...
asme9 C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/da830/Hwi_asm.s470...
asme9 C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/exc/Exception_asm.asm.asm...
asme9 C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/arm9/Cache_asm.asm.
asme9 C:/ti/bios_6_75_02_00/packages/ti/sysbios/family/arm/arm9/Mmu_asm.asm.asm...
asme9 C:/ti/bios_6_75_02_00/packages/ti/sysbios/timers/timer64/Timer_asm.s470... are9 BIOS.obj arm_HwiCommon_asm.obj arm_IntrinsicsSupport_asm.obj arm_TaskSupport_asm.obj da830_Hwi_asm.obj exc_
Exception_asm.obj arm9_Cache_asm.obj arm9_Mmu_asm.obj timer64_Timer_asm.obj ...
Build of libraries done.
cle9 package/cfg/app_pe9.c ... Finished building: "..
/app.cfg"
You have copied one file. making . . .
/src/sysbios/sysbios.ae9...
gmake[1]: Nothing to be done for 'all'. Building file: "..
/main.c"
Invoking: ARM Compiler "C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_19.6.0.STS/bin/armcl" -mv5e --code_state=32 -me --include_path="D:/ ti/workspace_v9/bios_6_75_02_00_typical" --include_path="C:/ti/bios_6_7_02_00_packages/ti/posix/ccs" -- include_path="C:/ti/ccs/ccs/tools/compiler/ti-cgt-arm_19.6.0.STS/include" --define=omapl138 --g --diag_ warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="main.d_raw" --cmd _file="configPkg/compiler.opt" "..
/main.c" Finished building: "..
/main.c" making . . .
/src/sysbios/sysbios.ae9...
gmake[2]: Nothing to be done for 'all'.
Building target: "bios_6_75_02_00_typical.out"
Invoking: ARM Linker "C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_19.6.0.STS/bin/armcl" -mv5e --code_state=32 -me --define=omapl138 -g - -diag_warning=225 --diag_wrap=off --display_error_number -z -m"bios_6_75_02_00_typical.map" --heap_size=0x800 -- stack_size=0x800 -i"C:/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_19.6.0.STS/lib" -i"C:/ti/ccs910/ccs/tools/ compiler/ti-cgt-arm_19.6.0.STS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml _link_info="bios_6_75_02_00_typical_linkInfo.xml" --rom_model -o "bios_6_75_02_00_typical.out" "./main.obj" "..
/mylinker.cmd" -l"configPkg/linker.cmd" -llibc.a
<Linking>
error #10057: symbol "__TI_STACK_SIZE" has conflicting mappings (previously mapped to "__STACK_SIZE")
error #10057: symbol "__TI_STACK_BASE" has conflicting mappings (previously mapped to "__stack")
error #10057: symbol "_stack" has conflicting mappings (previously mapped to "__stack") "configPkg/linker.cmd", line 132: warning #10190-D: absolute symbol "xdc_runtime_Startup__EXECFXN__C" being
Redefined "configPkg/linker.cmd", line 133: warning #10190-D: absolute symbol "xdc_runtime_Startup__RESETFXN__C" being
Redefined
"configPkg/linker.cmd", line 134: warning #10190-D: absolute symbol "xdc_rov_runtime_Mon__checksum" being redefined
"configPkg/linker.cmd", line 135: warning #10190-D: absolute symbol "xdc_rov_runtime_Mon__write" being redefined
"configPkg/linker.cmd", line 156: warning #10190-D: absolute symbol "_argsize" being redefined error #10010: errors encountered during linking;
"bios_6_75_02_00_typical.out" not built
>> Compilation failure
makefile:141: recipe for target 'bios_6_75_02_00_typical.out' failed
gmake[1]: *** [bios_6_75_02_00_typical.out] Error 1
makefile:137: recipe for target 'all' failed is a link error when compiling.
Please tell me if you understand.