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.

CCSTUDIO: Sysconfig with adding "Device Support"

Part Number: CCSTUDIO
Other Parts Discussed in Thread: SYSCONFIG, C2000WARE

Hi,

I am using CCS 12.3.0 with F2800137 with Sysconfig (1.16.1.2960) to configure all parameters. It seems that by default all peripherals have their clock enable.

It seems that we can disable clock of unused peripheral by adding "Device Support" in Sysconfig. But when I enable it, the linker generate errors as some function are redefined.

See below for linker output. How do we resolve this.

Thanks 

Arnaud

Building target: "cmpss_ex1_asynch.out"
Invoking: C2000 Linker
"C:/ti/ccs1230/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --tmu_support=tmu0 -Ooff --define=DEBUG --define=RAM --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi -z -m"cmpss_ex1_asynch.map" --heap_size=0x100 --stack_size=0x200 --warn_sections -i"C:/ti/ccs1230/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/lib" -i"C:/ti/c2000/C2000Ware_4_03_00_00" -i"C:/Users/ahugron/workspace_v12/cmpss_ex1_asynch/CPU1_RAM/syscfg" -i"C:/ti/ccs1230/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --reread_libs --define=RAM --diag_wrap=off --display_error_number --xml_link_info="cmpss_ex1_asynch_linkInfo.xml" --entry_point=code_start --rom_model -o "cmpss_ex1_asynch.out" "./cmpss_ex1_asynch.obj" "./syscfg/board.obj" "./syscfg/device.obj" "./syscfg/c2000ware_libraries.obj" "./f280013x_codestartbranch.obj" "./device/device.obj" "./device/f280013x_codestartbranch.obj" "../280013x_generic_ram_lnk.cmd" "C:/ti/c2000/C2000Ware_4_03_00_00/driverlib/f280013x/driverlib/ccs/Debug/driverlib.lib" -lc2000ware_libraries.cmd.genlibs -llibc.a
<Linking>
error #10056: symbol "Device_enableAllPeripherals" redefined: first defined in "./syscfg/device.obj"; redefined in "./device/device.obj"
error #10056: symbol "Device_initGPIO" redefined: first defined in "./syscfg/device.obj"; redefined in "./device/device.obj"
error #10056: symbol "Device_init" redefined: first defined in "./syscfg/device.obj"; redefined in "./device/device.obj"
error #10056: symbol "__error__" redefined: first defined in "./syscfg/device.obj"; redefined in "./device/device.obj"
error #10056: symbol "code_start" redefined: first defined in "./f280013x_codestartbranch.obj"; redefined in "./device/f280013x_codestartbranch.obj"
"../280013x_generic_ram_lnk.cmd", line 40: error #10099-D: program will not fit into available memory, or the section contains a call site that requires a trampoline that can't be generated for this section. placement with alignment/blocking fails for section "codestart" size 0x4 page 0. Available memory ranges:
BEGIN size: 0x2 unused: 0x2 max hole: 0x2
error #10010: errors encountered during linking; "cmpss_ex1_asynch.out" not built

>> Compilation failure
makefile:145: recipe for target 'cmpss_ex1_asynch.out' failed
gmake[1]: *** [cmpss_ex1_asynch.out] Error 1
makefile:141: recipe for target 'all' failed
gmake: *** [all] Error 2