How can I fix this error: "failed to generate all binary output"?
Show older comments
Hi! I am doing a current controller in Simulink for using it in a Beagle Bone Black and when I deploy to hardware I get this:
Build 3 1 Clear
05:34 PM Elapsed: 9 sec
### Starting build procedure for model: CurrentController
### Generating code and artifacts to 'Model specific' folder structure
Code Generation 1
Elapsed: 7 sec
### Generating code into build folder: C:\Users\A&A\Desktop\CurrentController_ert_rtw
### Invoking Target Language Compiler on CurrentController.rtw
### Using System Target File: C:\Program Files\MATLAB\R2017b\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 CurrentController_types.h
### Writing header file CurrentController.h
.
### Writing header file rtwtypes.h
### Writing source file CurrentController.c
### Writing header file CurrentController_private.h
### Writing source file CurrentController_data.c
### Writing header file rtmodel.h
### Writing source file ert_main.c
.
### TLC code generation complete.
### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: LCC-win64 v2.4.1 | gmake (64-bit Windows)
### 'C:\Users\A&A\Desktop\CurrentController_ert_rtw\CurrentController.mk' is up to date
### Building 'CurrentController': "C:\PROGRA~1\MATLAB\R2017b\bin\win64\gmake" -f CurrentController.mk all
C:\Users\A&A\Desktop\CurrentController_ert_rtw>set MATLAB=C:\Program Files\MATLAB\R2017b
C:\Users\A&A\Desktop\CurrentController_ert_rtw>cd .
C:\Users\A&A\Desktop\CurrentController_ert_rtw>if "" == "" ("C:\PROGRA~1\MATLAB\R2017b\bin\win64\gmake" -f CurrentController.mk all ) else ("C:\PROGRA~1\MATLAB\R2017b\bin\win64\gmake" -f CurrentController.mk )
"C:/PROGRA~1/MATLAB/R2017b/sys/lcc64/lcc64/bin/lcc64" -c -w -noregistrylookup -nodeclspec -IC:/PROGRA~1/MATLAB/R2017b/sys/lcc64/lcc64/include64 -march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 --sysroot="C:\ProgramData\MATLAB\SupportPackages\R2017b\toolbox\target\supportpackages\beaglebone\libc" -DMODEL=CurrentController -DNUMST=3 -DNCSTATES=1 -DHAVESTDIO -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=1 -DARM_PROJECT -DSTACK_SIZE=64 -D__MW_TARGET_USE_HARDWARE_RESOURCES_H__ -DRT -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=1 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=1 -DARM_PROJECT -DSTACK_SIZE=64 -DRT -DMODEL=CurrentController -DNUMST=3 -DNCSTATES=1 -DHAVESTDIO -IC:/Users/A&A/Desktop -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arm_cortex_a/blocks/sfcn/include -IC:/Users/A&A/Desktop/CurrentController_ert_rtw -IC:/Users/A&A/Documents/MATLAB -IC:/PROGRA~1/MATLAB/R2017b/extern/include -IC:/PROGRA~1/MATLAB/R2017b/simulink/include -IC:/PROGRA~1/MATLAB/R2017b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2017b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2017b/rtw/c/ert -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arm_cortex_a/blocks/sfcn/src -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/beaglebone/include -IC:/ProgramData/MATLAB/SupportPackages/R2017b/toolbox/target/supportpackages/arm_cortex_a/include -IC:/PROGRA~1/MATLAB/R2017b/toolbox/target/codertarget/rtos/inc -Fo"CurrentController.obj" "CurrentController.c"
'C:\Users\A' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
gmake: *** [CurrentController.obj] Error 1
C:\Users\A&A\Desktop\CurrentController_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
C:\Users\A&A\Desktop\CurrentController_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 CurrentController_codegen_rpt.html
### Build procedure for model: 'CurrentController' aborted due to an error.
Error(s) encountered while building "CurrentController":
### Failed to generate all binary outputs.
Could anyone help me to clear this error? I have tried some things but none of them are working.
Thanks
Answers (1)
Walter Roberson
on 27 Aug 2018
0 votes
Rename your directory so that it does not have any spaces or special characters in the names.
1 Comment
Ainoha Cruz Marrero
on 27 Aug 2018
Categories
Find more on ARM Cortex-A Processors in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!