MATLAB Answers

hello, I am getting this error "Failed to generate all binary outputs" again and again....what should I do?

32 ビュー (過去 30 日間)
Sanjana Dhiran
Sanjana Dhiran 2017 年 5 月 25 日
コメント済み: Walter Roberson 2018 年 7 月 18 日
this is the diagnostic viewer...I do not know what to do...please help me

  0 件のコメント

サインイン to comment.

回答 (4 件)

Walter Roberson
Walter Roberson 2017 年 5 月 25 日
Your directory is D:\study material followed by some more directories that also have spaces in the names. You need to rename your directories so that you not have any spaces in the names. For example D:\study_material would be fine at the top level (but remember to do the levels below that as well.)

  5 件のコメント

表示 2 件の古いコメント
Sanjana Dhiran
Sanjana Dhiran 2017 年 5 月 25 日
### Generating code into build folder: D:\Study_material\Lab1_Project1_ert_rtw
### Invoking Target Language Compiler on Lab1_Project1.rtw
### Using System Target File: C:\Program Files\MATLAB\MATLAB Production Server\R2015a\rtw\c\ert\ert.tlc
### Loading TLC function libraries
### Initial pass through model to cache user defined code
### Caching model source code
### Writing header file Lab1_Project1.h
### Writing header file Lab1_Project1_types.h
.
### Writing header file rtwtypes.h
### Writing source file Lab1_Project1.c
### Writing header file Lab1_Project1_private.h
### Writing source file Lab1_Project1_data.c
### Writing header file rtmodel.h
.
### Writing source file ert_main.c
### TLC code generation complete.
### Evaluating PostCodeGenCommand specified in the model
### Writing source file arm_cortex_m_multitasking.c
### Using toolchain: GNU Tools for ARM Embedded Processors v4.8 | gmake (64-bit Windows)
### Creating 'D:\Study_material\Lab1_Project1_ert_rtw\Lab1_Project1.mk' ...
### Using toolchain: GNU Tools for ARM Embedded Processors v4.8 | gmake (64-bit Windows)
### Creating 'D:\Study_material\Lab1_Project1_ert_rtw\Lab1_Project1.mk' ...
### Building 'Lab1_Project1': C:\PROGRA~1\MATLAB\MATLAB~1\R2015a\bin\win64\gmake -f Lab1_Project1.mk all
D:\Study_material\Lab1_Project1_ert_rtw>cd .
D:\Study_material\Lab1_Project1_ert_rtw>if "" == "" (C:\PROGRA~1\MATLAB\MATLAB~1\R2015a\bin\win64\gmake -f Lab1_Project1.mk all ) else (C:\PROGRA~1\MATLAB\MATLAB~1\R2015a\bin\win64\gmake -f Lab1_Project1.mk )
arm-none-eabi-g++ -std=c++98 -fno-rtti -fno-exceptions -MD -ffunction-sections -fdata-sections -Wall -c -O0 -mcpu=cortex-m0plus -mthumb -fno-exceptions -fno-common -fmessage-length=0 -DMODEL=Lab1_Project1 -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 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DNULL=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DTARGET_KL25Z -DTARGET_M0P -DTARGET_Freescale -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -D__CORTEX_M0PLUS -DARM_MATH_CM0PLUS -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 -DNULL=0 -DEXIT_FAILURE=1 -DEXTMODE_DISABLEPRINTF -DEXTMODE_DISABLETESTING -DEXTMODE_DISABLE_ARGS_PROCESSING=1 -DTARGET_KL25Z -DTARGET_M0P -DTARGET_Freescale -DTOOLCHAIN_GCC_ARM -DTOOLCHAIN_GCC -D__CORTEX_M0PLUS -DARM_MATH_CM0PLUS -DRT -DSTACK_SIZE=64 -DMODEL=Lab1_Project1 -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -ID:/study_material/embedded_system/FRDM_KL25Z_ARM/RHIT_KL25Z_Library_R2015a/include -ID:/Study_material/Lab1_Project1_ert_rtw -ID:/Study_material -IC:/Users/Dell/Documents/Kl25z_MATLAB -IC:/PROGRA~1/MATLAB/MATLAB~1/R2015a/extern/include -IC:/PROGRA~1/MATLAB/MATLAB~1/R2015a/simulink/include -IC:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/src -IC:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/ert -I./referenced_model_includes -IC:/MATLAB/SupportPackages/R2015a/mbed-8e73be2a2ac1 -IC:/MATLAB/SupportPackages/R2015a/mbed-8e73be2a2ac1/TARGET_KL25Z -IC:/MATLAB/SupportPackages/R2015a/freedomboard/toolbox/target/supportpackages/freedomboard/@slCustomizer/../include -IC:/PROGRA~1/MATLAB/MATLAB~1/R2015a/rtw/c/src/ext_mode/serial -IC:/MATLAB/SupportPackages/R2015a/armcortexm/toolbox/target/supportpackages/arm_cortex_m/scheduler/include -o "RHIT_digitalPin_wrapper.o" "D:/study_material/embedded_system/FRDM_KL25Z_ARM/RHIT_KL25Z_Library_R2015a/src/RHIT_digitalPin_wrapper.cpp"
In file included from D:/study_material/embedded_system/FRDM_KL25Z_ARM/RHIT_KL25Z_Library_R2015a/src/MKL25Z4.h:121:0,
from D:/study_material/embedded_system/FRDM_KL25Z_ARM/RHIT_KL25Z_Library_R2015a/src/cmsis.h:10,
from D:/study_material/embedded_system/FRDM_KL25Z_ARM/RHIT_KL25Z_Library_R2015a/src/objects.h:19,
from D:/study_material/embedded_system/FRDM_KL25Z_ARM/RHIT_KL25Z_Library_R2015a/src/device.h:56,
from D:/study_material/embedded_system/FRDM_KL25Z_ARM/RHIT_KL25Z_Library_R2015a/src/platform.h:21,
from D:/study_material/embedded_system/FRDM_KL25Z_ARM/RHIT_KL25Z_Library_R2015a/src/mbed.h:21,
from D:/study_material/embedded_system/FRDM_KL25Z_ARM/RHIT_KL25Z_Library_R2015a/src/RHIT_digitalPin_wrapper.cpp:1:
D:/study_material/embedded_system/FRDM_KL25Z_ARM/RHIT_KL25Z_Library_R2015a/src/core_cm0plus.h:112:95: fatal error: core_cmInstr.h: No such file or directory
#include /* Core Instruction Access */
^
compilation terminated.
gmake: *** [RHIT_digitalPin_wrapper.o] Error 1
D:\Study_material\Lab1_Project1_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
D:\Study_material\Lab1_Project1_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.
### Build procedure for model: 'Lab1_Project1' aborted due to an error.
Error(s) encountered while building model "Lab1_Project1":
### Failed to generate all binary outputs.
Component: Simulink | Category: Model error
Walter Roberson
Walter Roberson 2017 年 5 月 25 日
Please look in D:/study_material/embedded_system/FRDM_KL25Z_ARM/RHIT_KL25Z_Library_R2015a/src and D:/study_material/embedded_system/FRDM_KL25Z_ARM/RHIT_KL25Z_Library_R2015a/include to see if you can see a core_cmInstr.h in either of them ?
core_cmInstr.h appears to normally live in a directory named Include inside of a package named CMSIS; see https://github.com/ARM-software/CMSIS/tree/master/CMSIS/Include . Another file named cmsis.h is expected to be in the same directory, but your version of that file is at D:/study_material/embedded_system/FRDM_KL25Z_ARM/RHIT_KL25Z_Library_R2015a/src/cmsis.h which is a "src" directory not an "include" directory. My first guess would be that you copied in part of CMSIS but missed copying in core_cmInstr.h and possibly other files

サインイン to comment.


JUAN JOSE MUÑOZ
JUAN JOSE MUÑOZ 2018 年 1 月 20 日
change the path of my file because the previous one had folders with space, my new route was: c: / desktop / test / archivosimulink, and it worked, thank you, I think that if you want to leave your route you should remove all the spaces to the folders the route

  2 件のコメント

mohamed bernor
mohamed bernor 2018 年 6 月 8 日
i have the same issue and it still did not solved out i tries to change the path to a non spaced folder but the same error shows up .
this is the error code
Code Generation 1
Elapsed: 27 sec
### Generating code into build folder: C:\Users\Public\projetmcc3_ert_rtw
### Invoking Target Language Compiler on projetmcc3.rtw
### Using System Target File: C:\Program Files\MATLAB\R2017a\rtw\c\ert\ert.tlc
### Loading TLC function libraries
......
### Initial pass through model to cache user defined code
.
### Caching model source code
....................................
### Writing header file projetmcc3.h
.
### Writing header file projetmcc3_types.h
### Writing header file rtwtypes.h
### Writing header file multiword_types.h
### Writing source file projetmcc3.c
### Writing header file projetmcc3_private.h
.
### Writing source file projetmcc3_data.c
### Writing header file rtmodel.h
### Writing source file ert_main.c
### TLC code generation complete.
### Generating TLC interface API.
..........
### Creating data type transition file projetmcc3_dt.h
.### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: Arduino AVR v1.6.13 | gmake (64-bit Windows)
### Creating 'C:\Users\Public\projetmcc3_ert_rtw\projetmcc3.mk' ...
### Building 'projetmcc3': "C:\PROGRA~1\MATLAB\R2017a\bin\win64\gmake" -f projetmcc3.mk all
Walter Roberson
Walter Roberson 2018 年 6 月 8 日
Everything looks okay up to there; no error message is shown in what you posted. Was there more?

サインイン to comment.


POOJA Verma
POOJA Verma 2018 年 7 月 18 日
My diagnostic views is attached please help me with the problem as it says that ''failed to generate all the binary outputs''.

  1 件のコメント

サインイン to comment.


POOJA Verma
POOJA Verma 2018 年 7 月 18 日
Simulation [4 filtered] [8 filtered] 1 Clear
03:07 PM Elapsed: 30 sec
Code Generation [2 filtered] [8 filtered]
Elapsed: 22 sec
Error(s) encountered while building "Project":
### Failed to generate all binary outputs.
Component: Simulink | Category: Model error

  0 件のコメント

サインイン to comment.

サインイン してこの質問に回答します。

タグ


Translated by