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.

TMS320F28377S: "Failed to generate all binary outputs."

Part Number: TMS320F28377S
Other Parts Discussed in Thread: TI-CGT

Greetings to all,

I am implementing FOC for PMSM drive with f28377s processor and generating code using embedded coder MATLAB2017a for the processor... I couldn't complete the building process since the error report says that it was "Failed to generate all binary outputs. Anyone please help me to solve this issue asap. I have attached Diagnostic viewer report for the reference.

Thanks

Best Regards

Priya

=== Build (Elapsed: 46 sec) ===
### Starting build procedure for model: hil
### Generating code into build folder: E:\Matlab_Workspace\hil_ert_rtw
Warning:Input port 1 of 'hil/Permanent Magnet Synchronous Machine2' is not connected.
Warning:Output port 1 of 'hil/Inverter/IGBT1' is not connected.
Warning:Output port 1 of 'hil/Inverter/IGBT2' is not connected.
Warning:Output port 1 of 'hil/Inverter/IGBT3' is not connected.
Warning:Output port 1 of 'hil/Inverter/IGBT4' is not connected.
Warning:Output port 1 of 'hil/Inverter/IGBT5' is not connected.
Warning:Output port 1 of 'hil/Inverter/IGBT6' is not connected.
### Invoking Target Language Compiler on hil.rtw
### Using System Target File: C:\Matlab R2017a Installation files\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
### Generating code for S Function : <S41>/State-Space
### Caching model source code
Warning:A terminate function is necessary, however the code generation process did not generate a terminate function because the 'Terminate function required' check box is cleared.
### Writing header file hil.h
.
### Writing source file hil.c
### Writing header file rtwtypes.h
### Writing source file hil_data.c
### Writing header file rtmodel.h
### Writing source file ert_main.c
.
### TLC code generation complete.
### Evaluating PostCodeGenCommand specified in the model
### Creating CCS Project at : E:\Matlab_Workspace\hil_ert_rtw\CCS_Project
### CCS project created successfully Open project in Code Composer Studio.
### Using toolchain: Texas Instruments C2000 Code Generation Tools v6.0.0 | gmake (64-bit Windows)
### 'E:\Matlab_Workspace\hil_ert_rtw\hil.mk' is up to date
### Building 'hil': "C:\MATLAB~2\bin\win64\gmake" -B -f hil.mk all

E:\Matlab_Workspace\hil_ert_rtw>cd .

E:\Matlab_Workspace\hil_ert_rtw>if "" == "" ("C:\MATLAB~2\bin\win64\gmake" -B -f hil.mk all ) else ("C:\MATLAB~2\bin\win64\gmake" -B -f hil.mk )
C:/CCSV7I~1/ccsv7/tools/compiler/TI-CGT~4.LTS/bin/cl2000 --compile_only --large_memory_model --silicon_version=28 --define="LARGE_MODEL" -i"/~SupportFiles/DSP280x_headers" -i"/~SupportFiles/DSP280x_headers/include" -i"C:/CCSV7I~1/ccsv7/tools/compiler/TI-CGT~4.LTS/include" -v28 --float_support=fpu32 -ml -DMW_DAC_CHANNEL_C -DMW_DAC_CHANNEL_B -DMW_DAC_CHANNEL_A -DMODEL=hil -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=0 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DDAEMON_MODE=1 -DMW_PIL_SCIFIFOLEN=16 -DCPU1 -DF2837X_REG_FORMAT -DMW_F2837XS -DSTACK_SIZE=512 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DTERMFCN=0 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DDAEMON_MODE=1 -DMW_PIL_SCIFIFOLEN=16 -DCPU1 -DF2837X_REG_FORMAT -DMW_F2837XS -DSTACK_SIZE=512 -DRT -DMODEL=hil -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IE:/Matlab_Workspace -IC:/MATLAB~2/simulink/include/sf_runtime -IE:/Matlab_Workspace/hil_ert_rtw -IC:/MATLAB~2/extern/include -IC:/MATLAB~2/simulink/include -IC:/MATLAB~2/rtw/c/src -IC:/MATLAB~2/rtw/c/src/ext_mode/common -IC:/MATLAB~2/rtw/c/ert -IC:/MATLAB~2/toolbox/physmod/powersys/facts/facts -IC:/MATLAB~2/toolbox/physmod/powersys/DR/DR -IC:/ProgramData/MATLAB/SupportPackages/R2017a_1/toolbox/target/supportpackages/tic2000/inc -IC:/MATLAB~2/toolbox/shared/can/src/scanutil -IC:/ProgramData/MATLAB/SupportPackages/R2017a_1/toolbox/target/supportpackages/tic2000/src -IC:/CCSV7I~1/CONTRO~1/DEVICE~1/F2837xS/v191/F2837X~1/include -IC:/CCSV7I~1/CONTRO~1/DEVICE~1/F2837xS/v191/F2837X~3/include -IC:/CCSV7I~1/CONTRO~1/DEVICE~1/F2837xS/v191/F2837X~1 -IC:/MATLAB~2/toolbox/rtw/targets/common/can/blocks/tlc_c -IC:/ProgramData/MATLAB/SupportPackages/R2017a_1/toolbox/target/shared/externalmode_daemon/include --output_file=MW_c2000DAC.obj C:/ProgramData/MATLAB/SupportPackages/R2017a_1/toolbox/target/supportpackages/tic2000/src/MW_c2000DAC.c
C:/CCSV7I~1/ccsv7/tools/compiler/TI-CGT~4.LTS/bin/cl2000 --compile_only --large_memory_model --silicon_version=28 --define="LARGE_MODEL" -i"/~SupportFiles/DSP280x_headers" -i"/~SupportFiles/DSP280x_headers/include" -i"C:/CCSV7I~1/ccsv7/tools/compiler/TI-CGT~4.LTS/include" -v28 --float_support=fpu32 -ml -DMW_DAC_CHANNEL_C -DMW_DAC_CHANNEL_B -DMW_DAC_CHANNEL_A -DMODEL=hil -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=0 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DDAEMON_MODE=1 -DMW_PIL_SCIFIFOLEN=16 -DCPU1 -DF2837X_REG_FORMAT -DMW_F2837XS -DSTACK_SIZE=512 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DTERMFCN=0 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DDAEMON_MODE=1 -DMW_PIL_SCIFIFOLEN=16 -DCPU1 -DF2837X_REG_FORMAT -DMW_F2837XS -DSTACK_SIZE=512 -DRT -DMODEL=hil -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IE:/Matlab_Workspace -IC:/MATLAB~2/simulink/include/sf_runtime -IE:/Matlab_Workspace/hil_ert_rtw -IC:/MATLAB~2/extern/include -IC:/MATLAB~2/simulink/include -IC:/MATLAB~2/rtw/c/src -IC:/MATLAB~2/rtw/c/src/ext_mode/common -IC:/MATLAB~2/rtw/c/ert -IC:/MATLAB~2/toolbox/physmod/powersys/facts/facts -IC:/MATLAB~2/toolbox/physmod/powersys/DR/DR -IC:/ProgramData/MATLAB/SupportPackages/R2017a_1/toolbox/target/supportpackages/tic2000/inc -IC:/MATLAB~2/toolbox/shared/can/src/scanutil -IC:/ProgramData/MATLAB/SupportPackages/R2017a_1/toolbox/target/supportpackages/tic2000/src -IC:/CCSV7I~1/CONTRO~1/DEVICE~1/F2837xS/v191/F2837X~1/include -IC:/CCSV7I~1/CONTRO~1/DEVICE~1/F2837xS/v191/F2837X~3/include -IC:/CCSV7I~1/CONTRO~1/DEVICE~1/F2837xS/v191/F2837X~1 -IC:/MATLAB~2/toolbox/rtw/targets/common/can/blocks/tlc_c -IC:/ProgramData/MATLAB/SupportPackages/R2017a_1/toolbox/target/shared/externalmode_daemon/include --output_file=MW_c28xx_board.obj MW_c28xx_board.c
C:/CCSV7I~1/ccsv7/tools/compiler/TI-CGT~4.LTS/bin/cl2000 --compile_only --large_memory_model --silicon_version=28 --define="LARGE_MODEL" -i"/~SupportFiles/DSP280x_headers" -i"/~SupportFiles/DSP280x_headers/include" -i"C:/CCSV7I~1/ccsv7/tools/compiler/TI-CGT~4.LTS/include" -v28 --float_support=fpu32 -ml -DMW_DAC_CHANNEL_C -DMW_DAC_CHANNEL_B -DMW_DAC_CHANNEL_A -DMODEL=hil -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=0 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DDAEMON_MODE=1 -DMW_PIL_SCIFIFOLEN=16 -DCPU1 -DF2837X_REG_FORMAT -DMW_F2837XS -DSTACK_SIZE=512 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DTERMFCN=0 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DDAEMON_MODE=1 -DMW_PIL_SCIFIFOLEN=16 -DCPU1 -DF2837X_REG_FORMAT -DMW_F2837XS -DSTACK_SIZE=512 -DRT -DMODEL=hil -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IE:/Matlab_Workspace -IC:/MATLAB~2/simulink/include/sf_runtime -IE:/Matlab_Workspace/hil_ert_rtw -IC:/MATLAB~2/extern/include -IC:/MATLAB~2/simulink/include -IC:/MATLAB~2/rtw/c/src -IC:/MATLAB~2/rtw/c/src/ext_mode/common -IC:/MATLAB~2/rtw/c/ert -IC:/MATLAB~2/toolbox/physmod/powersys/facts/facts -IC:/MATLAB~2/toolbox/physmod/powersys/DR/DR -IC:/ProgramData/MATLAB/SupportPackages/R2017a_1/toolbox/target/supportpackages/tic2000/inc -IC:/MATLAB~2/toolbox/shared/can/src/scanutil -IC:/ProgramData/MATLAB/SupportPackages/R2017a_1/toolbox/target/supportpackages/tic2000/src -IC:/CCSV7I~1/CONTRO~1/DEVICE~1/F2837xS/v191/F2837X~1/include -IC:/CCSV7I~1/CONTRO~1/DEVICE~1/F2837xS/v191/F2837X~3/include -IC:/CCSV7I~1/CONTRO~1/DEVICE~1/F2837xS/v191/F2837X~1 -IC:/MATLAB~2/toolbox/rtw/targets/common/can/blocks/tlc_c -IC:/ProgramData/MATLAB/SupportPackages/R2017a_1/toolbox/target/shared/externalmode_daemon/include --output_file=MW_c28xx_csl.obj MW_c28xx_csl.c
C:/CCSV7I~1/ccsv7/tools/compiler/TI-CGT~4.LTS/bin/cl2000 --compile_only --large_memory_model --silicon_version=28 --define="LARGE_MODEL" -i"/~SupportFiles/DSP280x_headers" -i"/~SupportFiles/DSP280x_headers/include" -i"C:/CCSV7I~1/ccsv7/tools/compiler/TI-CGT~4.LTS/include" -v28 --float_support=fpu32 -ml -DMW_DAC_CHANNEL_C -DMW_DAC_CHANNEL_B -DMW_DAC_CHANNEL_A -DMODEL=hil -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DTERMFCN=0 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DDAEMON_MODE=1 -DMW_PIL_SCIFIFOLEN=16 -DCPU1 -DF2837X_REG_FORMAT -DMW_F2837XS -DSTACK_SIZE=512 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DTERMFCN=0 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DDAEMON_MODE=1 -DMW_PIL_SCIFIFOLEN=16 -DCPU1 -DF2837X_REG_FORMAT -DMW_F2837XS -DSTACK_SIZE=512 -DRT -DMODEL=hil -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IE:/Matlab_Workspace -IC:/MATLAB~2/simulink/include/sf_runtime -IE:/Matlab_Workspace/hil_ert_rtw -IC:/MATLAB~2/extern/include -IC:/MATLAB~2/simulink/include -IC:/MATLAB~2/rtw/c/src -IC:/MATLAB~2/rtw/c/src/ext_mode/common -IC:/MATLAB~2/rtw/c/ert -IC:/MATLAB~2/toolbox/physmod/powersys/facts/facts -IC:/MATLAB~2/toolbox/physmod/powersys/DR/DR -IC:/ProgramData/MATLAB/SupportPackages/R2017a_1/toolbox/target/supportpackages/tic2000/inc -IC:/MATLAB~2/toolbox/shared/can/src/scanutil -IC:/ProgramData/MATLAB/SupportPackages/R2017a_1/toolbox/target/supportpackages/tic2000/src -IC:/CCSV7I~1/CONTRO~1/DEVICE~1/F2837xS/v191/F2837X~1/include -IC:/CCSV7I~1/CONTRO~1/DEVICE~1/F2837xS/v191/F2837X~3/include -IC:/CCSV7I~1/CONTRO~1/DEVICE~1/F2837xS/v191/F2837X~1 -IC:/MATLAB~2/toolbox/rtw/targets/common/can/blocks/tlc_c -IC:/ProgramData/MATLAB/SupportPackages/R2017a_1/toolbox/target/shared/externalmode_daemon/include --output_file=hil_data.obj hil_data.c
"C:/CCSV7I~1/ccsv7/tools/compiler/TI-CGT~4.LTS/include/stdbool.h", line 36: warning: incompatible redefinition of macro "false" (declared at line 24 of "rtwtypes.h")
"C:/CCSV7I~1/ccsv7/tools/compiler/TI-CGT~4.LTS/include/stdbool.h", line 37: warning: incompatible redefinition of macro "true" (declared at line 28 of "rtwtypes.h")
"hil_data.c", line 34: error: floating constant is out of range
1 error detected in the compilation of "hil_data.c".
>> Compilation failure
gmake: *** [hil_data.obj] Error 1
E:\Matlab_Workspace\hil_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
E:\Matlab_Workspace\hil_ert_rtw>An_error_occurred_during_the_call_to_make
'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
operable program or batch file.
### Creating HTML report file hil_codegen_rpt.html
### Build procedure for model: 'hil' aborted due to an error.
Error:Error(s) encountered while building "hil":
### Failed to generate all binary outputs.