Dear all
I am trying the mathwork's example with following link. http://cn.mathworks.com/help/supportpkg/texasinstrumentsc2000/examples/permanent-magnet-synchronous-motor-field-oriented-control.html My eval board is DRV8312EVM + F28069 Piccolo, so I open the c28069pmsmfoc_ert.slx model. However, when I try to build the model, it always appear the error. Could you help to fix it. Thanks a lot.
### Generating code into build folder: C:\Users\A700010304\Documents\MATLAB\Fan\28069focMBD\c28069pmsmfoc_ert_ert_rtw ### Invoking Target Language Compiler on c28069pmsmfoc_ert.rtw ### Using System Target File: C:\Program Files\MATLAB\R2014a\rtw\c\ert\ert.tlc ### Loading TLC function libraries Warning: The data type "int8" uses a word size that is not available on the intended target. Fixed-point signals using this data type will be put inside a larger word or multi words. When used, extra software will be generated to force this larger word or multi words to emulate a smaller word. This emulation is helpful when your prototype target and your final production target are not the same. If the smaller word size does NOT exist on the final production target, then consider increasing the word size to one that is supported. Warning: The data type "uint8" uses a word size that is not available on the intended target. Warning: The data type "boolean" uses a word size that is not available on the intended target. ### Initial pass through model to cache user defined code ### Caching model source code ……………………………………………………………………. ……………………………………………………………………. ……………………………………………………………………. . ### Writing source file c28069pmsmfoc_ert.c ### Writing header file c28069pmsmfoc_ert_private.h ### Writing header file c28069pmsmfoc_ert.h ### Writing header file c28069pmsmfoc_ert_types.h ### Writing header file rtwtypes.h ### Writing source file c28069pmsmfoc_ert_data.c ### Writing source file ert_main.c ### TLC code generation complete. …### Evaluating PostCodeGenCommand specified in the model ### Using toolchain: Texas Instruments C2000 Code Generation Tools v5.2.12 | gmake (64-bit Windows) ### 'C:\Users\A700010304\Documents\MATLAB\Fan\28069focMBD\c28069pmsmfoc_ert_ert_rtw\c28069pmsmfoc_ert.mk' is up to date ### Building 'c28069pmsmfoc_ert': C:\PROGRA~1\MATLAB\R2014a\bin\win64\gmake -B -f c28069pmsmfoc_ert.mk all C:\Users\A700010304\Documents\MATLAB\Fan\28069focMBD\c28069pmsmfoc_ert_ert_rtw>cd .
C:\Users\A700010304\Documents\MATLAB\Fan\28069focMBD\c28069pmsmfoc_ert_ert_rtw>if "" == "" (C:\PROGRA~1\MATLAB\R2014a\bin\win64\gmake -B -f c28069pmsmfoc_ert.mk all ) else (C:\PROGRA~1\MATLAB\R2014a\bin\win64\gmake -B -f c28069pmsmfoc_ert.mk ) C:/ti/ccsv6/tools/compiler/TI-CGT~1.2/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/TI-CGT~1.2/include" -v28 -ml –float_support=fpu32 -DMODEL=c28069pmsmfoc_ert -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DRT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DMODEL=c28069pmsmfoc_ert -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/A700010304/Documents/MATLAB/Fan/28069focMBD/c28069pmsmfoc_ert_ert_rtw -IC:/Users/A700010304/Documents/MATLAB/Fan/28069focMBD -IC:/MATLAB/SupportPackages/R2014a/tic2000/tic2000examples -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -IC:/MATLAB/SupportPackages/R2014a/tic2000/src -IC:/PROGRA~1/MATLAB/R2014a/toolbox/target/extensions/processor/tic2000/include -IC:/PROGRA~1/MATLAB/R2014a/toolbox/rtw/targets/common/can/blocks/tlc_c -IC:/MATLAB/SupportPackages/R2014a/tic2000/inc -I/F2806x_common/include -I/F2806x_headers/include -IC:/PROGRA~1/MATLAB/R2014a/toolbox/shared/can/src/scanutil –output_file="MW_c28xx_board.obj" "MW_c28xx_board.c" C:/ti/ccsv6/tools/compiler/TI-CGT~1.2/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/TI-CGT~1.2/include" -v28 -ml –float_support=fpu32 -DMODEL=c28069pmsmfoc_ert -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DRT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DMODEL=c28069pmsmfoc_ert -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/A700010304/Documents/MATLAB/Fan/28069focMBD/c28069pmsmfoc_ert_ert_rtw -IC:/Users/A700010304/Documents/MATLAB/Fan/28069focMBD -IC:/MATLAB/SupportPackages/R2014a/tic2000/tic2000examples -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -IC:/MATLAB/SupportPackages/R2014a/tic2000/src -IC:/PROGRA~1/MATLAB/R2014a/toolbox/target/extensions/processor/tic2000/include -IC:/PROGRA~1/MATLAB/R2014a/toolbox/rtw/targets/common/can/blocks/tlc_c -IC:/MATLAB/SupportPackages/R2014a/tic2000/inc -I/F2806x_common/include -I/F2806x_headers/include -IC:/PROGRA~1/MATLAB/R2014a/toolbox/shared/can/src/scanutil –output_file="MW_c28xx_adc.obj" "MW_c28xx_adc.c" C:/ti/ccsv6/tools/compiler/TI-CGT~1.2/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/TI-CGT~1.2/include" -v28 -ml –float_support=fpu32 -DMODEL=c28069pmsmfoc_ert -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DRT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DMODEL=c28069pmsmfoc_ert -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/A700010304/Documents/MATLAB/Fan/28069focMBD/c28069pmsmfoc_ert_ert_rtw -IC:/Users/A700010304/Documents/MATLAB/Fan/28069focMBD -IC:/MATLAB/SupportPackages/R2014a/tic2000/tic2000examples -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -IC:/MATLAB/SupportPackages/R2014a/tic2000/src -IC:/PROGRA~1/MATLAB/R2014a/toolbox/target/extensions/processor/tic2000/include -IC:/PROGRA~1/MATLAB/R2014a/toolbox/rtw/targets/common/can/blocks/tlc_c -IC:/MATLAB/SupportPackages/R2014a/tic2000/inc -I/F2806x_common/include -I/F2806x_headers/include -IC:/PROGRA~1/MATLAB/R2014a/toolbox/shared/can/src/scanutil –output_file="MW_c28xx_cap.obj" "MW_c28xx_cap.c" C:/ti/ccsv6/tools/compiler/TI-CGT~1.2/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/TI-CGT~1.2/include" -v28 -ml –float_support=fpu32 -DMODEL=c28069pmsmfoc_ert -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DRT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DMODEL=c28069pmsmfoc_ert -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/A700010304/Documents/MATLAB/Fan/28069focMBD/c28069pmsmfoc_ert_ert_rtw -IC:/Users/A700010304/Documents/MATLAB/Fan/28069focMBD -IC:/MATLAB/SupportPackages/R2014a/tic2000/tic2000examples -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -IC:/MATLAB/SupportPackages/R2014a/tic2000/src -IC:/PROGRA~1/MATLAB/R2014a/toolbox/target/extensions/processor/tic2000/include -IC:/PROGRA~1/MATLAB/R2014a/toolbox/rtw/targets/common/can/blocks/tlc_c -IC:/MATLAB/SupportPackages/R2014a/tic2000/inc -I/F2806x_common/include -I/F2806x_headers/include -IC:/PROGRA~1/MATLAB/R2014a/toolbox/shared/can/src/scanutil –output_file="MW_c28xx_csl.obj" "MW_c28xx_csl.c" C:/ti/ccsv6/tools/compiler/TI-CGT~1.2/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/TI-CGT~1.2/include" -v28 -ml –float_support=fpu32 -DMODEL=c28069pmsmfoc_ert -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DRT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DMODEL=c28069pmsmfoc_ert -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/A700010304/Documents/MATLAB/Fan/28069focMBD/c28069pmsmfoc_ert_ert_rtw -IC:/Users/A700010304/Documents/MATLAB/Fan/28069focMBD -IC:/MATLAB/SupportPackages/R2014a/tic2000/tic2000examples -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -IC:/MATLAB/SupportPackages/R2014a/tic2000/src -IC:/PROGRA~1/MATLAB/R2014a/toolbox/target/extensions/processor/tic2000/include -IC:/PROGRA~1/MATLAB/R2014a/toolbox/rtw/targets/common/can/blocks/tlc_c -IC:/MATLAB/SupportPackages/R2014a/tic2000/inc -I/F2806x_common/include -I/F2806x_headers/include -IC:/PROGRA~1/MATLAB/R2014a/toolbox/shared/can/src/scanutil –output_file="MW_c28xx_pwm.obj" "MW_c28xx_pwm.c" C:/ti/ccsv6/tools/compiler/TI-CGT~1.2/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/TI-CGT~1.2/include" -v28 -ml –float_support=fpu32 -DMODEL=c28069pmsmfoc_ert -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DRT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DMODEL=c28069pmsmfoc_ert -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/A700010304/Documents/MATLAB/Fan/28069focMBD/c28069pmsmfoc_ert_ert_rtw -IC:/Users/A700010304/Documents/MATLAB/Fan/28069focMBD -IC:/MATLAB/SupportPackages/R2014a/tic2000/tic2000examples -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -IC:/MATLAB/SupportPackages/R2014a/tic2000/src -IC:/PROGRA~1/MATLAB/R2014a/toolbox/target/extensions/processor/tic2000/include -IC:/PROGRA~1/MATLAB/R2014a/toolbox/rtw/targets/common/can/blocks/tlc_c -IC:/MATLAB/SupportPackages/R2014a/tic2000/inc -I/F2806x_common/include -I/F2806x_headers/include -IC:/PROGRA~1/MATLAB/R2014a/toolbox/shared/can/src/scanutil –output_file="c28069pmsmfoc_ert.obj" "c28069pmsmfoc_ert.c" C:/ti/ccsv6/tools/compiler/TI-CGT~1.2/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/TI-CGT~1.2/include" -v28 -ml –float_support=fpu32 -DMODEL=c28069pmsmfoc_ert -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DRT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DMODEL=c28069pmsmfoc_ert -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/A700010304/Documents/MATLAB/Fan/28069focMBD/c28069pmsmfoc_ert_ert_rtw -IC:/Users/A700010304/Documents/MATLAB/Fan/28069focMBD -IC:/MATLAB/SupportPackages/R2014a/tic2000/tic2000examples -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -IC:/MATLAB/SupportPackages/R2014a/tic2000/src -IC:/PROGRA~1/MATLAB/R2014a/toolbox/target/extensions/processor/tic2000/include -IC:/PROGRA~1/MATLAB/R2014a/toolbox/rtw/targets/common/can/blocks/tlc_c -IC:/MATLAB/SupportPackages/R2014a/tic2000/inc -I/F2806x_common/include -I/F2806x_headers/include -IC:/PROGRA~1/MATLAB/R2014a/toolbox/shared/can/src/scanutil –output_file="c28069pmsmfoc_ert_data.obj" "c28069pmsmfoc_ert_data.c" C:/ti/ccsv6/tools/compiler/TI-CGT~1.2/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/TI-CGT~1.2/include" -v28 -ml –float_support=fpu32 -DMODEL=c28069pmsmfoc_ert -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DRT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DMODEL=c28069pmsmfoc_ert -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/A700010304/Documents/MATLAB/Fan/28069focMBD/c28069pmsmfoc_ert_ert_rtw -IC:/Users/A700010304/Documents/MATLAB/Fan/28069focMBD -IC:/MATLAB/SupportPackages/R2014a/tic2000/tic2000examples -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -IC:/MATLAB/SupportPackages/R2014a/tic2000/src -IC:/PROGRA~1/MATLAB/R2014a/toolbox/target/extensions/processor/tic2000/include -IC:/PROGRA~1/MATLAB/R2014a/toolbox/rtw/targets/common/can/blocks/tlc_c -IC:/MATLAB/SupportPackages/R2014a/tic2000/inc -I/F2806x_common/include -I/F2806x_headers/include -IC:/PROGRA~1/MATLAB/R2014a/toolbox/shared/can/src/scanutil –output_file="c2806xBoard_Realtime_Support.obj" "c2806xBoard_Realtime_Support.c" C:/ti/ccsv6/tools/compiler/TI-CGT~1.2/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/TI-CGT~1.2/include" -v28 -ml –float_support=fpu32 -DMODEL=c28069pmsmfoc_ert -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DRT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DMODEL=c28069pmsmfoc_ert -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/A700010304/Documents/MATLAB/Fan/28069focMBD/c28069pmsmfoc_ert_ert_rtw -IC:/Users/A700010304/Documents/MATLAB/Fan/28069focMBD -IC:/MATLAB/SupportPackages/R2014a/tic2000/tic2000examples -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -IC:/MATLAB/SupportPackages/R2014a/tic2000/src -IC:/PROGRA~1/MATLAB/R2014a/toolbox/target/extensions/processor/tic2000/include -IC:/PROGRA~1/MATLAB/R2014a/toolbox/rtw/targets/common/can/blocks/tlc_c -IC:/MATLAB/SupportPackages/R2014a/tic2000/inc -I/F2806x_common/include -I/F2806x_headers/include -IC:/PROGRA~1/MATLAB/R2014a/toolbox/shared/can/src/scanutil –output_file="c2806xSchedulerTimer0.obj" "c2806xSchedulerTimer0.c" C:/ti/ccsv6/tools/compiler/TI-CGT~1.2/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/TI-CGT~1.2/include" -v28 -ml –float_support=fpu32 -DMODEL=c28069pmsmfoc_ert -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DRT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DMODEL=c28069pmsmfoc_ert -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/Users/A700010304/Documents/MATLAB/Fan/28069focMBD/c28069pmsmfoc_ert_ert_rtw -IC:/Users/A700010304/Documents/MATLAB/Fan/28069focMBD -IC:/MATLAB/SupportPackages/R2014a/tic2000/tic2000examples -IC:/PROGRA~1/MATLAB/R2014a/extern/include -IC:/PROGRA~1/MATLAB/R2014a/simulink/include -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2014a/rtw/c/ert -IC:/MATLAB/SupportPackages/R2014a/tic2000/src -IC:/PROGRA~1/MATLAB/R2014a/toolbox/target/extensions/processor/tic2000/include -IC:/PROGRA~1/MATLAB/R2014a/toolbox/rtw/targets/common/can/blocks/tlc_c -IC:/MATLAB/SupportPackages/R2014a/tic2000/inc -I/F2806x_common/include -I/F2806x_headers/include -IC:/PROGRA~1/MATLAB/R2014a/toolbox/shared/can/src/scanutil –output_file="ert_main.obj" "ert_main.c" "### Creating standalone executable "../c28069pmsmfoc_ert.out" …" C:/ti/ccsv6/tools/compiler/TI-CGT~1.2/bin/cl2000 -z -IC:/ti/ccsv6/tools/compiler/TI-CGT~1.2/lib –stack_size=64 –warn_sections –reread_libs –rom_model -m"c28069pmsmfoc_ert.map" -l"rts2800_fpu32.lib" –define BOOT_FROM_FLASH=0 –output_file=../c28069pmsmfoc_ert.out MW_c28xx_board.obj MW_c28xx_adc.obj MW_c28xx_cap.obj MW_c28xx_csl.obj MW_c28xx_pwm.obj c28069pmsmfoc_ert.obj c28069pmsmfoc_ert_data.obj c2806xBoard_Realtime_Support.obj c2806xSchedulerTimer0.obj ert_main.obj C:/MATLAB/SupportPackages/R2014a/tic2000/src/c28069.cmd C:/MATLAB/SupportPackages/R2014a/tic2000/rtlib/IQmath_fpu32.lib C:/PROGRA~1/MATLAB/R2014a/toolbox/idelink/extensions/ticcs/c2000/c2806xPeripherals.cmd Linking warning: build attribute vendor section TI missing in "C:/MATLAB/SupportPackages/R2014a/tic2000/rtlib/IQmath_fpu32.lib<IQ17atan2PU .obj>": compatibility cannot be determined warning: build attribute vendor section TI missing in "C:/MATLAB/SupportPackages/R2014a/tic2000/rtlib/IQmath_fpu32.lib<IQ17cosPU.o bj>": compatibility cannot be determined warning: build attribute vendor section TI missing in "C:/MATLAB/SupportPackages/R2014a/tic2000/rtlib/IQmath_fpu32.lib<IQ17div.obj >": compatibility cannot be determined warning: build attribute vendor section TI missing in "C:/MATLAB/SupportPackages/R2014a/tic2000/rtlib/IQmath_fpu32.lib<IQ17mag.obj >": compatibility cannot be determined warning: build attribute vendor section TI missing in "C:/MATLAB/SupportPackages/R2014a/tic2000/rtlib/IQmath_fpu32.lib<IQ17sinPU.o bj>": compatibility cannot be determined warning: build attribute vendor section TI missing in "C:/MATLAB/SupportPackages/R2014a/tic2000/rtlib/IQmath_fpu32.lib<IQmathTable s.obj>": compatibility cannot be determined
undefined first referenced symbol in file --------- ---------------- _AdcRegs MW_c28xx_adc.obj _AdcResult c28069pmsmfoc_ert.obj _ConfigCpuTimer c2806xSchedulerTimer0.obj _CpuTimer0 c2806xSchedulerTimer0.obj _CpuTimer0Regs c2806xSchedulerTimer0.obj _DisableDog MW_c28xx_board.obj _ECap1Regs MW_c28xx_cap.obj _ECap2Regs MW_c28xx_cap.obj _ECap3Regs MW_c28xx_cap.obj _EPwm1Regs c28069pmsmfoc_ert.obj _EPwm2Regs c28069pmsmfoc_ert.obj _EPwm3Regs c28069pmsmfoc_ert.obj _EPwm5Regs c28069pmsmfoc_ert.obj _EPwm6Regs c28069pmsmfoc_ert.obj _GpioCtrlRegs MW_c28xx_board.obj _GpioDataRegs c28069pmsmfoc_ert.obj _InitAdc c28069pmsmfoc_ert.obj _InitCpuTimers MW_c28xx_board.obj _InitPeripheralClocks MW_c28xx_board.obj _InitPieCtrl MW_c28xx_board.obj _InitPieVectTable MW_c28xx_board.obj _InitPll MW_c28xx_board.obj _IntOsc1Sel MW_c28xx_board.obj _PieCtrlRegs MW_c28xx_csl.obj _PieVectTable MW_c28xx_csl.obj _SysCtrlRegs MW_c28xx_board.obj
error: unresolved symbols remain error: errors encountered during linking; "../c28069pmsmfoc_ert.out" not built
>> Compilation failure gmake: * [../c28069pmsmfoc_ert.out] Error 1
C:\Users\A700010304\Documents\MATLAB\Fan\28069focMBD\c28069pmsmfoc_ert_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2
C:\Users\A700010304\Documents\MATLAB\Fan\28069focMBD\c28069pmsmfoc_ert_ert_rtw>An_error_occurred_during_the_call_to_make 'An_error_occurred_during_the_call_to_make' 不是內部或外部命令、可執行的程式或批次檔
Best Answer