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.

TMS320F28069M: Error #1965 cannot open source file "all"

Part Number: TMS320F28069M
Other Parts Discussed in Thread: MOTORWARE, CCSTUDIO

Hello,

CCS keeps putting the keyword "all" in the list of C2000 Compiler flags.

The compiler throws the above-mentioned Error #1965 when it sees it.

I can't get rid of it.

-v28 -ml -mt -O0 --opt_for_speed=2 --include_path="C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src" --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/modules/ctrl/src/32b" --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b" --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/drv8301kit_revD/f28x/f2806xF/src" --include_path="C:/ti/motorware/motorware_1_01_00_18" --define=FAST_ROM_V1p6" all -g --diag_warning=225 --display_error_number --abi=coffabi

The word "all" is in bold above; that's my addition. Whenever I try to delete it, it just comes back.

Thanks,

Dave 

  • Dave,

    How are you clearing "all" is it using the Edit Flags button in the dialog below?

    Odd that it is getting inserted in the middle of the options.  There also seems to be an extra " after --define=FAST_ROM_V1p6 

    If you look at the predefined symbols is there anything odd there:

    Regards,

    John

  • Hi John,

    This all started when I decided to setup CCS and run InstaSpin on an additional laptop. That way, we could do some testing using the second laptop, and I could continue development on mine. Ran into all sorts of trouble with paths and linking, etc... I thought I'd had it all worked out, when this new problem inexplicably (to me anyway) reared its head. Anyway, yes I am using the "Edit Flags" button. I also tried taking the summary of flags set from the setup that works, and copying and pasting it into the same space in the new laptop. It still inserts the "all" keyword. Then I tried deleting it entirely, just to see what would happen. I ended up with:

    --include_path="C:/ti/ccs1031/ccs/tools/compiler/c2000_6.2.11/include" all

    It's like it's haunting me...

    The predefined symbols is completely empty for the troublesome setup.

    By contrast, for the working setup, predefined symbols has FAST_ROM_V1p6 as its only entry.

    Thanks,

    Dave

  • Dave,

    Can you send me your .cproject?  You might have to zip it to attach it.  Maybe I can see something off in it.

    Regards,
    John

  • Hi John,

    Here it is (attached). I went through the .cproject from both setups line by line yesterday, and can point out the differences I saw, if you like. Most of them, I think were due to the difference in Compiler versions (the working one is v6.2, the troublesome one is v22.6). But you may want to look at it with fresh eyes.

    One item of note - this was happening with every project on the new computer. I tried to replace the summary of flags a couple more times with the one from the working setup. This was something I'd tried several times before, but this time it worked. The "all" keyword wasn't standing alone, but included in the statement:

    --advice:performance=all

    Everything compiled and behaved relatively nicely.

    So I thought "Ok, I'll try this with Lab 3a." I just copied and pasted from lab 01b to lab 03a, and crossed my fingers. I tried it a few more times, since that seemed to work for Lab 01b, but no such luck.It's even worse, with weird backslashes and quotes everywhere, not to mention repeated text:

    -v28 -ml -mt -O0 --opt_for_speed=2 --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" --include_path="C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src" --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/modules/ctrl/src/32b" --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b" --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/drv8301kit_revD/f28x/f2806xF/src" --include_path="\"C:/ti/motorware/motorware_1_01_00_18\"--define=FAST_ROM_V1p6" all -g --diag_warning=225 --display_error_number --abi=coffabi

    I've also attached the build console output for Lab 3a.

    cproject.zip

    build-console-for-lab3a.txt
    **** Build of configuration Release for project proj_lab03a ****
    
    "C:\\ti\\ccs1200\\ccs\\utils\\bin\\gmake" -k all 
     
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/cpu/src/32b/f28x/f2806x/CodeStartBranch.asm"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="CodeStartBranch.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/cpu/src/32b/f28x/f2806x/CodeStartBranch.asm"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:9: recipe for target 'CodeStartBranch.obj' failed
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    gmake: *** [CodeStartBranch.obj] Error 1
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/adc/src/32b/f28x/f2806x/adc.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="adc.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/adc/src/32b/f28x/f2806x/adc.c"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:16: recipe for target 'adc.obj' failed
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    gmake: *** [adc.obj] Error 1
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/modules/clarke/src/32b/clarke.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="clarke.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/modules/clarke/src/32b/clarke.c"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:23: recipe for target 'clarke.obj' failed
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    gmake: *** [clarke.obj] Error 1
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/clk/src/32b/f28x/f2806x/clk.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="clk.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/clk/src/32b/f28x/f2806x/clk.c"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:30: recipe for target 'clk.obj' failed
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    gmake: *** [clk.obj] Error 1
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/cpu/src/32b/f28x/f2806x/cpu.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="cpu.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/cpu/src/32b/f28x/f2806x/cpu.c"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:37: recipe for target 'cpu.obj' failed
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    gmake: *** [cpu.obj] Error 1
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/modules/ctrl/src/32b/ctrl.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="ctrl.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/modules/ctrl/src/32b/ctrl.c"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:44: recipe for target 'ctrl.obj' failed
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    gmake: *** [ctrl.obj] Error 1
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/drvic/drv8301/src/32b/f28x/f2806x/drv8301.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="drv8301.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/drvic/drv8301/src/32b/f28x/f2806x/drv8301.c"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:51: recipe for target 'drv8301.obj' failed
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    gmake: *** [drv8301.obj] Error 1
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/modules/filter/src/32b/filter_fo.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="filter_fo.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/modules/filter/src/32b/filter_fo.c"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:58: recipe for target 'filter_fo.obj' failed
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/flash/src/32b/f28x/f2806x/flash.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="flash.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/flash/src/32b/f28x/f2806x/flash.c"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:65: recipe for target 'flash.obj' failed
    gmake: *** [filter_fo.obj] Error 1
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    gmake: *** [flash.obj] Error 1
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/gpio/src/32b/f28x/f2806x/gpio.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="gpio.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/gpio/src/32b/f28x/f2806x/gpio.c"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:72: recipe for target 'gpio.obj' failed
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    gmake: *** [gpio.obj] Error 1
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src/hal.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="hal.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src/hal.c"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:79: recipe for target 'hal.obj' failed
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    gmake: *** [hal.obj] Error 1
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/modules/ipark/src/32b/ipark.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="ipark.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/modules/ipark/src/32b/ipark.c"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:86: recipe for target 'ipark.obj' failed
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    gmake: *** [ipark.obj] Error 1
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/modules/offset/src/32b/offset.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="offset.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/modules/offset/src/32b/offset.c"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:93: recipe for target 'offset.obj' failed
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    gmake: *** [offset.obj] Error 1
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/osc/src/32b/f28x/f2806x/osc.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="osc.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/osc/src/32b/f28x/f2806x/osc.c"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:100: recipe for target 'osc.obj' failed
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    gmake: *** [osc.obj] Error 1
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/modules/park/src/32b/park.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="park.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/modules/park/src/32b/park.c"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:107: recipe for target 'park.obj' failed
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/modules/pid/src/32b/pid.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="pid.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/modules/pid/src/32b/pid.c"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:114: recipe for target 'pid.obj' failed
    gmake: *** [park.obj] Error 1
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    gmake: *** [pid.obj] Error 1
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/pie/src/32b/f28x/f2806x/pie.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="pie.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/pie/src/32b/f28x/f2806x/pie.c"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:121: recipe for target 'pie.obj' failed
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    gmake: *** [pie.obj] Error 1
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/pll/src/32b/f28x/f2806x/pll.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="pll.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/pll/src/32b/f28x/f2806x/pll.c"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:128: recipe for target 'pll.obj' failed
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    gmake: *** [pll.obj] Error 1
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/src/proj_lab03a.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="proj_lab03a.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/src/proj_lab03a.c"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:135: recipe for target 'proj_lab03a.obj' failed
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    gmake: *** [proj_lab03a.obj] Error 1
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/pwm/src/32b/f28x/f2806x/pwm.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="pwm.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/pwm/src/32b/f28x/f2806x/pwm.c"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:142: recipe for target 'pwm.obj' failed
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/pwr/src/32b/f28x/f2806x/pwr.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="pwr.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/pwr/src/32b/f28x/f2806x/pwr.c"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:149: recipe for target 'pwr.obj' failed
    gmake: *** [pwm.obj] Error 1
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    gmake: *** [pwr.obj] Error 1
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/spi/src/32b/f28x/f2806x/spi.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="spi.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/spi/src/32b/f28x/f2806x/spi.c"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:156: recipe for target 'spi.obj' failed
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    gmake: *** [spi.obj] Error 1
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/modules/svgen/src/32b/svgen.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="svgen.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/modules/svgen/src/32b/svgen.c"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:163: recipe for target 'svgen.obj' failed
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    gmake: *** [svgen.obj] Error 1
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/timer/src/32b/f28x/f2806x/timer.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="timer.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/timer/src/32b/f28x/f2806x/timer.c"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:170: recipe for target 'timer.obj' failed
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    gmake: *** [timer.obj] Error 1
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/modules/traj/src/32b/traj.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="traj.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/modules/traj/src/32b/traj.c"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:177: recipe for target 'traj.obj' failed
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    gmake: *** [traj.obj] Error 1
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/modules/usDelay/src/32b/f28x/usDelay.asm"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="usDelay.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/modules/usDelay/src/32b/f28x/usDelay.asm"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:184: recipe for target 'usDelay.obj' failed
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    gmake: *** [usDelay.obj] Error 1
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/modules/user/src/32b/user.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="user.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/modules/user/src/32b/user.c"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:191: recipe for target 'user.obj' failed
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    gmake: *** [user.obj] Error 1
    Building file: "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/wdog/src/32b/f28x/f2806x/wdog.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi" --include_path="\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all" all --preproc_with_compile --preproc_dependency="wdog.d_raw"  "C:/ti/motorware/motorware_1_01_00_18/sw/drivers/wdog/src/32b/f28x/f2806x/wdog.c"
    [all.]
     
    >> Compilation failure
    subdir_rules.mk:198: recipe for target 'wdog.obj' failed
    >> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
    Fatal error: cannot open source file "all"
    1 catastrophic error detected in the compilation of "all".
    Compilation terminated.
    gmake: *** [wdog.obj] Error 1
    gmake: Target 'all' not remade because of errors.
    
    **** Build Finished ****
    

    Thanks,

    Dave

  • Lines 43-46 look odd in the .cproject

    								<option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.C2000_22.6.compilerID.INCLUDE_PATH.2124403737" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_22.6.compilerID.INCLUDE_PATH" valueType="includePath">
    									<listOptionValue builtIn="false" value=""\"C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\"--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi"/>
    									<listOptionValue builtIn="false" value=""C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b"--define=FAST_ROM_V1p6 all"/>
    								</option>

    That <option> should just be setting include paths but it has that "all" in it as well as some other options.  I think this is the source of the problem.  I would be inclined to remove that whole block and then run CCS and see if it loads ok.  If so then add the missing include path via the GUI options.

    John

  • Hi John,

    Thanks for the advice, but I'm not there yet.

    At first, I removed the whole block:

    <option IS_BUILTIN_EMPTY="false" IS_VALUE_EMPTY="false" id="com.ti.ccstudio.buildDefinitions.C2000_22.6.compilerID.INCLUDE_PATH.2124403737" name="Add dir to #include search path (--include_path, -I)" superClass="com.ti.ccstudio.buildDefinitions.C2000_22.6.compilerID.INCLUDE_PATH" valueType="includePath">
    <listOptionValue builtIn="false" value="&quot;\&quot;C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\&quot;--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi"/>
    <listOptionValue builtIn="false" value="&quot;C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b&quot;--define=FAST_ROM_V1p6 all"/>
    <listOptionValue builtIn="false" value="C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include"/>
    <listOptionValue builtIn="false" value="C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src"/>
    <listOptionValue builtIn="false" value="C:/ti/motorware/motorware_1_01_00_18/sw/modules/ctrl/src/32b"/>
    <listOptionValue builtIn="false" value="C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b"/>
    <listOptionValue builtIn="false" value="C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/drv8301kit_revD/f28x/f2806xF/src"/>
    <listOptionValue builtIn="false" value="&quot;C:/ti/motorware/motorware_1_01_00_18&quot;--define=FAST_ROM_V1p6"/>
    <listOptionValue builtIn="false" value="&quot;\&quot;C:/ti/motorware/motorware_1_01_00_18\&quot;--define=FAST_ROM_V1p6&quot;-g"/>

    It wouldn't even compile.

    Then, I just removed these lines:
    <listOptionValue builtIn="false" value="&quot;\&quot;C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b\&quot;--define=FAST_ROM_V1p6 all -g --diag_warning=225 --display_error_number --abi=coffabi"/>
    <listOptionValue builtIn="false" value="&quot;C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b&quot;--define=FAST_ROM_V1p6 all"/>
    <listOptionValue builtIn="false" value="C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include"/>

    And I'm back to square one. The flag summary looks like:

    -v28 -ml -mt -O0 --opt_for_speed=2 --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/drv8301kit_revD/f28x/f2806x/src" --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/modules/ctrl/src/32b" --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b" --include_path="C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/drv8301kit_revD/f28x/f2806xF/src" --include_path="\"/\"C:/ti/motorware/motorware_1_01_00_18/\"--define=FAST_ROM_V1p6\"-g" --include_path="C:/ti/ccs1200/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --include_path="C:/ti/motorware/motorware_1_01_00_18" all --define=FAST_ROM_V1p6 -g --diag_warning=225 --display_error_number --abi=coffabi

    Thanks,

    Dave

  • Dave,

    Next attempt...

    Change the option for the performance advisor to "none"

    Curious to see if that replaces the "all" issue with a "none" issue.

    I am seeing some odd behaviour in my project.  If I uncheck the "Provide advice..." option it doesn't pass anything on build but if I go back to the GUI it shows it as checked.  

    John

  • I half expected to see the offending lines re-appear in the .cproject file, but they are not there.

    There is one more line in that block that refers to something other than just file paths. There's a "-g" in there.

    <listOptionValue builtIn="false" value="&quot;\&quot;C:/ti/motorware/motorware_1_01_00_18\&quot;--define=FAST_ROM_V1p6&quot;-g"/>

    I removed it, exited code composer (which I've been doing after every change to the .cproject file), re-opened CCS, and tried compiling the project.

    I'm seeing the same kind of thing - "all" is in there, as well as too many quotes, backslashes, repeated text, etc... No need to re-post the whole thing here again.

    There is one more mention of "all," a few lines down in the next block, but it looks pretty inoffensive.

    I'll try removing that next.

    Thanks,

    Dave

  • Hi John,

    Just setting that to "none" allows me to compile, and I can spin a motor in lab 3a. It was weird, though, the first time it threw a bunch of errors. I didn't stick around to look at them - just re-compiled, and the second time it worked.

    Thanks for your help! I'm going to mark this as resolved. There are still plenty of problems, but they don't appear to have anything to do with the subject of this thread.

    Thanks,

    Dave

  • Dave,

    Good to hear that you can proceed, well at least to whatever the next problem is.  

    Regards,

    John