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.

CCS/LAUNCHXL-F28027F: Example Labs do not build

Part Number: LAUNCHXL-F28027F
Other Parts Discussed in Thread: MOTORWARE, DRV8305, C2000WARE, DRV8301

Tool/software: Code Composer Studio

I am using CCS version 9.3.0.00012 and Motorware 1.01.0018. Running F28027F and DRV8305.

I started by importing a CCS project. I pointed to the folder of the labs:

C:\ti\motorware\motorware_1_01_00_18\sw\solutions\instaspin_foc\boards\boostxldrv8305_revA\f28x\f2802xF\projects\ccs

I went in to build settings and set the device and the tool chain accordingly:

When I try to build the project I get the following output on the console:


**** Build of configuration Flash for project proj_lab01c ****

"C:\\ti\\ccs930\\ccs\\utils\\bin\\gmake" -k all

Building target: "proj_lab01c.out"
Invoking: C2000 Linker
"C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/bin/cl2000" -v28 -ml -mt -O3 --opt_for_speed=0 --advice:performance=all --define=F2802xF --define=FLASH -g --c89 --diag_warning=225 --display_error_number --abi=coffabi --asm_listing -z -m"proj_lab01c.map" --stack_size=0x180 --warn_sections -i"C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/lib" -i"C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/include" --priority --reread_libs --disable_auto_rts --diag_suppress=16002 --diag_suppress=10063-D --xml_link_info="proj_lab01c_linkInfo.xml" --entry_point=code_start --rom_model -o "proj_lab01c.out" "C:/ti/motorware/motorware_1_01_00_18/sw/modules/fast/lib/32b/f28x/f2802x/2802xRevB_Fast_IQ_ROMSymbols.lib" "C:/ti/motorware/motorware_1_01_00_18/sw/modules/fast/lib/32b/f28x/f2802x/2802xRevB_Fast_ONLY_ROMSymbols.lib" "C:/ti/motorware/motorware_1_01_00_18/sw/modules/fast/lib/32b/f28x/f2802x/2802xRevB_Fast_RTS_ROMSymbols.lib" "C:/ti/motorware/motorware_1_01_00_18/sw/modules/fast/lib/32b/f28x/f2802x/fast_public.lib" "C:/ti/motorware/motorware_1_01_00_18/sw/modules/iqmath/lib/f28x/32b/IQmath.lib" "./CodeStartBranch.obj" "./adc.obj" "./angle_gen.obj" "./clarke.obj" "./clk.obj" "./cpu.obj" "./cpu_time.obj" "./ctrl.obj" "./datalog.obj" "./drv8301.obj" "./filter_fo.obj" "./flash.obj" "./fw.obj" "./gpio.obj" "./hal.obj" "./ipark.obj" "./memCopy.obj" "./offset.obj" "./osc.obj" "./park.obj" "./pid.obj" "./pie.obj" "./pll.obj" "./proj_lab01c.obj" "./pwm.obj" "./pwr.obj" "./spi.obj" "./svgen.obj" "./svgen_current.obj" "./timer.obj" "./traj.obj" "./usDelay.obj" "./user.obj" "./vs_freq.obj" "./wdog.obj" "../28027_RAM_lnk.cmd" "../F28027.cmd" -llibc.a -l"C:/ti/c2000/C2000Ware_2_00_00_03/device_support/f2802x/headers/cmd/F2802x_Headers_nonBIOS.cmd"
<Linking>
"../F28027.cmd", line 78: error #10263: BEGIN memory range has already been
specified
"../F28027.cmd", line 81: error #10263: IQTABLES memory range has already been
specified
"../F28027.cmd", line 81: error #10264: IQTABLES memory range overlaps existing
memory range IQTABLES
"../F28027.cmd", line 82: error #10263: IQTABLES2 memory range has already been
specified
"../F28027.cmd", line 82: error #10264: IQTABLES2 memory range overlaps
existing memory range IQTABLES2
"../F28027.cmd", line 83: error #10263: IQTABLES3 memory range has already been
specified
"../F28027.cmd", line 83: error #10264: IQTABLES3 memory range overlaps
existing memory range IQTABLES3
"../F28027.cmd", line 85: error #10264: ROM memory range overlaps existing
memory range BOOTROM
"../F28027.cmd", line 86: error #10263: RESET memory range has already been
specified
"../F28027.cmd", line 86: error #10264: RESET memory range overlaps existing
memory range RESET
"../F28027.cmd", line 90: error #10264: P_RAML0 memory range overlaps existing
memory range PRAML0
"../F28027.cmd", line 96: error #10264: RAMM0_M1 memory range overlaps existing
memory range BOOT_RSVD
"../F28027.cmd", line 96: error #10264: RAMM0_M1 memory range overlaps existing
memory range RAMM1
"../F28027.cmd", line 97: error #10264: D_RAML0 memory range overlaps existing
memory range DRAML0
"../28027_RAM_lnk.cmd", line 122: error #10099-D: program will not fit into
available memory. placement with alignment/blocking fails for section
".text" size 0x37c3 page 0. Available memory ranges:
PRAML0 size: 0x900 unused: 0x900 max hole: 0x900
error #10010: errors encountered during linking; "proj_lab01c.out" not built

>> Compilation failure
makefile:181: recipe for target 'proj_lab01c.out' failed
gmake: *** [proj_lab01c.out] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

-------------------------------------------------

What am I missing to get this project to build?

  • Hi Brandon,

    Brandon Varner1 said:
    What am I missing to get this project to build?

    You are not missing anything. Actually, the issue sounds like you have too many linker command files that are conflicting with each other.

    You have three in your project.

    Did you modify the project in any way? When I import the same project, it builds fine. My linker options looks different that yours:

    Building target: "proj_lab01c.out"
    Invoking: C2000 Linker
    "C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/bin/cl2000" -v28 -ml -mt -O2 --advice:performance=all -g --define=FLASH --define=FAST_ROM_V1p7 --define=F2802xF --diag_warning=225 --display_error_number --asm_listing -z -m"proj_lab01c.map" --stack_size=0x180 --warn_sections -i"C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/lib" -i"C:/ti/ccs930/ccs/tools/compiler/ti-cgt-c2000_18.12.4.LTS/include" --priority --reread_libs --disable_auto_rts --diag_suppress=16002 --diag_suppress=10063-D --xml_link_info="proj_lab01c_linkInfo.xml" --entry_point=code_start --rom_model -o "proj_lab01c.out" "C:/ti/motorware/motorware_1_01_00_18/sw/modules/fast/lib/32b/f28x/f2802x/2802xRevB_Fast_IQ_ROMSymbols.lib" "C:/ti/motorware/motorware_1_01_00_18/sw/modules/fast/lib/32b/f28x/f2802x/2802xRevB_Fast_ONLY_ROMSymbols.lib" "C:/ti/motorware/motorware_1_01_00_18/sw/modules/fast/lib/32b/f28x/f2802x/2802xRevB_Fast_RTS_ROMSymbols.lib" -lrts2800_ml.lib "C:/ti/motorware/motorware_1_01_00_18/sw/modules/fast/lib/32b/f28x/f2802x/fast_public.lib" "C:/ti/motorware/motorware_1_01_00_18/sw/modules/iqmath/lib/f28x/32b/IQmath.lib" "./CodeStartBranch.obj" "./adc.obj" "./angle_gen.obj" "./clarke.obj" "./clk.obj" "./cpu.obj" "./cpu_time.obj" "./ctrl.obj" "./datalog.obj" "./drv8301.obj" "./filter_fo.obj" "./flash.obj" "./fw.obj" "./gpio.obj" "./hal.obj" "./ipark.obj" "./memCopy.obj" "./offset.obj" "./osc.obj" "./park.obj" "./pid.obj" "./pie.obj" "./pll.obj" "./proj_lab01c.obj" "./pwm.obj" "./pwr.obj" "./spi.obj" "./svgen.obj" "./svgen_current.obj" "./timer.obj" "./traj.obj" "./usDelay.obj" "./user.obj" "./vs_freq.obj" "./wdog.obj" "C:/ti/motorware/motorware_1_01_00_18/sw/ide/ccs/cmd/f2802x/F28027F.cmd"
    <Linking>
    Finished building target: "proj_lab01c.out"

  • I'm not sure how "../28027_RAM_lnk.cmd" is included. I could not find it referenced in the properties. After I deleted it from the project, the project compiled.