Clear Filters
Clear Filters

Error(s) encountered while building model "mruduluntitled": ### Failed to generate all binary outputs.

28 views (last 30 days)
I am trying to generate C code using the embedded coder from my simulink model to execute in ccsv4 The error as mentioned in diagnostic viewer is as follows:
### Generating code into build folder: C:\Users\Mrudul M\Documents\MATLAB\mruduluntitled_ert_rtw ### Invoking Target Language Compiler on mruduluntitled.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 header file mruduluntitled.h ### Writing header file mruduluntitled_types.h ### Writing header file rtwtypes.h ### Writing source file mruduluntitled.c ### Writing header file mruduluntitled_private.h ### Writing source file mruduluntitled_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\Mrudul M\Documents\MATLAB\mruduluntitled_ert_rtw\mruduluntitled.mk' is up to date ### Building 'mruduluntitled': C:\PROGRA~1\MATLAB\R2014a\bin\win64\gmake -B -f mruduluntitled.mk all C:\Users\Mrudul M\Documents\MATLAB\mruduluntitled_ert_rtw>cd .
C:\Users\Mrudul M\Documents\MATLAB\mruduluntitled_ert_rtw>if "" == "" (C:\PROGRA~1\MATLAB\R2014a\bin\win64\gmake -B -f mruduluntitled.mk all ) else (C:\PROGRA~1\MATLAB\R2014a\bin\win64\gmake -B -f mruduluntitled.mk ) /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"/include" -v28 -ml --float_support=fpu32 -DMODEL=mruduluntitled -DNUMST=3 -DNCSTATES=1 -DHAVESTDIO -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=1 -DRT -DSTACK_SIZE=64 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=1 -DMODEL=mruduluntitled -DNUMST=3 -DNCSTATES=1 -DHAVESTDIO -IC:/Users/MRUDUL~1/DOCUME~1/MATLAB/mruduluntitled_ert_rtw -IC:/Users/MRUDUL~1/DOCUME~1/MATLAB -IC:/Users/MRUDUL~1/Desktop/SIMULA~1 -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:/PROGRA~1/MATLAB/R2014a/toolbox/dsp/include -IC:/PROGRA~1/MATLAB/R2014a/toolbox/dsp/extern/src/export/include/src -IC:/PROGRA~1/MATLAB/R2014a/toolbox/dsp/extern/src/export/include -IC:/PROGRA~1/MATLAB/R2014a/toolbox/shared/dsp/vision/matlab/include -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 -IC:/ti/controlSUITE/device_support/f2806x/v100/F2806x_common/include -IC:/ti/controlSUITE/device_support/f2806x/v100/F2806x_headers/include -IC:/PROGRA~1/MATLAB/R2014a/toolbox/shared/can/src/scanutil --output_file="MW_c28xx_board.obj" "MW_c28xx_board.c" The system cannot find the path specified. gmake: * [MW_c28xx_board.obj] Error 1
C:\Users\Mrudul M\Documents\MATLAB\mruduluntitled_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2
C:\Users\Mrudul M\Documents\MATLAB\mruduluntitled_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.
[Warning: The following error was caught while executing 'onCleanup' class destructor: Invalid or deleted object.] ### Build procedure for model: 'mruduluntitled' aborted due to an error.
Error(s) encountered while building model "mruduluntitled":
### Failed to generate all binary outputs.
Component: Simulink | Category: Model error
What is it that I'm doing wrong? The xmakefilesetup was configured. I am also including the model for reference.

Answers (1)

hong li
hong li on 5 Dec 2018
Have you solved this problem?

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!