If you look at the command line
C:/ti/ccsv6/tools/compiler/C2000_~2.LTS/bin/cl2000 --compile_only --large_memory_model --cla_support=cla0 --silicon_version=28 --define="LARGE_MODEL" -i"/~SupportFiles/DSP280x_headers" -i"/~SupportFiles/DSP280x_headers/include" -i"C:/ti/ccsv6/tools/compiler/C2000_~2.LTS/include" -v28 -ml -DMODEL=c28027pmsmfoc_ert -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DSTACK_SIZE=512 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DRT -DSTACK_SIZE=512 -DMODEL=c28027pmsmfoc_ert -DNUMST=2 -DNCSTATES=0 -DHAVESTDIO -IC:/PROGRA~1/MATLAB/R2016a/simulink/include/sf_runtime -IE:/Lamar/Thesis/motor control with ti launchpad/c28027pmsmfoc_ert_ert_rtw -IE:/Lamar/Thesis/motor control with ti launchpad -IC:/PROGRA~1/MATLAB/R2016a/extern/include -IC:/PROGRA~1/MATLAB/R2016a/simulink/include -IC:/PROGRA~1/MATLAB/R2016a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2016a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2016a/rtw/c/ert -IC:/MATLAB/SupportPackages/R2016a/toolbox/target/supportpackages/tic2000/src -IC:/MATLAB/SupportPackages/R2016a/toolbox/target/supportpackages/tic2000/inc -IC:/ti/controlSUITE/device_support/f2802x/v222/f2802x_common/include -IC:/ti/controlSUITE/device_support/f2802x/v222/f2802x_headers/include -IC:/ti/controlSUITE/device_support/f2802x/v222 --output_file="MW_c28xx_board.obj" "MW_c28xx_board.c"
notice that it contains in part
-IE:/Lamar/Thesis/motor control with ti launchpad
Unfortunately the command processor being used always treats unquoted spaces as ending the argument, so that command is as if you had used -IE:/Lamar/Thesis/motor as one argument, and had also asked to compile the files "control", "with", "ti", and "launchpad".
The toolchain "should" know enough to add quotes when needed, but it does not know that.
The easiest way to work around this is to move your model into a directory which does not have any spaces in any part of the name.
Best Answer