How can I avoid "### Failed to generate all binary outputs" problem between my Arduino and Simulink
Show older comments
I'm trying to get a simple pulse signal from Simulink to the arduino. But when I try to get it done I get the following error:
* *=== Model Save (Elapsed: 1 sec) ===
=== Simulation (Elapsed: 1 sec) ===
Error:The starting build folder "C:\" is at the root of a drive. The make utilities as used by the Simulink Coder Build Process cannot build when the starting folder is at the root of a drive. Please change to a sub folder and re-try the build.
=== Simulation (Elapsed: 12 sec) ===
### Starting build procedure for model: test
### Generating code and artifacts to 'Model specific' folder structure
### Generating code into build folder: C:\Windows\System32\test_ert_rtw
### Invoking Target Language Compiler on test.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 test_types.h
### Writing header file test.h
### Writing header file rtwtypes.h
### Writing header file multiword_types.h
### Writing source file test.c
### Writing header file test_private.h
.
### Writing header file rtmodel.h
### Writing source file test_data.c
### Writing source file ert_main.c
### TLC code generation complete.
### Generating TLC interface API.
......
### Creating data type transition file test_dt.h
### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: Arduino AVR v1.8.1 | gmake (64-bit Windows)
### Creating 'C:\Windows\System32\test_ert_rtw\test.mk' ...
### Building 'test': "C:\PROGRA~1\MATLAB\R2017b\bin\win64\gmake" -f test.mk all
C:\Windows\System32\test_ert_rtw>cd .
C:\Windows\System32\test_ert_rtw>if "" == "" ("C:\PROGRA~1\MATLAB\R2017b\bin\win64\gmake" -f test.mk all ) else ("C:\PROGRA~1\MATLAB\R2017b\bin\win64\gmake" -f test.mk )
gmake: test.mk: No such file or directory
gmake: *** No rule to make target `test.mk'. Stop.
C:\Windows\System32\test_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
C:\Windows\System32\test_ert_rtw>An_error_occurred_during_the_call_to_make
"An_error_occurred_during_the_call_to_make" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
### Creating HTML report file test_codegen_rpt.html
### Build procedure for model: 'test' aborted due to an error.
Error:Error(s) encountered while building "test":
### Failed to generate all binary outputs.
=== Build (Elapsed: 13 sec) ===
### Starting build procedure for model: test
### Generating code and artifacts to 'Model specific' folder structure
### Generating code into build folder: C:\Windows\System32\test_ert_rtw
### Invoking Target Language Compiler on test.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 test_types.h
### Writing header file test.h
### Writing header file rtwtypes.h
### Writing header file multiword_types.h
### Writing source file test.c
### Writing header file test_private.h
### Writing header file rtmodel.h
.
### Writing source file test_data.c
### Writing source file ert_main.c
### TLC code generation complete.
### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: Arduino AVR v1.8.1 | gmake (64-bit Windows)
### Creating 'C:\Windows\System32\test_ert_rtw\test.mk' ...
### Building 'test': "C:\PROGRA~1\MATLAB\R2017b\bin\win64\gmake" -f test.mk all
C:\Windows\System32\test_ert_rtw>cd .
C:\Windows\System32\test_ert_rtw>if "" == "" ("C:\PROGRA~1\MATLAB\R2017b\bin\win64\gmake" -f test.mk all ) else ("C:\PROGRA~1\MATLAB\R2017b\bin\win64\gmake" -f test.mk )
gmake: test.mk: No such file or directory
gmake: *** No rule to make target `test.mk'. Stop.
C:\Windows\System32\test_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
C:\Windows\System32\test_ert_rtw>An_error_occurred_during_the_call_to_make
"An_error_occurred_during_the_call_to_make" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
### Creating HTML report file test_codegen_rpt.html
### Build procedure for model: 'test' aborted due to an error.
Error:Error(s) encountered while building "test":
### Failed to generate all binary outputs.
=== Simulation (Elapsed: 32 sec) ===
### Starting build procedure for model: test
### Generating code and artifacts to 'Model specific' folder structure
### Generating code into build folder: C:\Windows\System32\test_ert_rtw
### Invoking Target Language Compiler on test.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 test_types.h
### Writing header file test.h
### Writing header file rtwtypes.h
### Writing header file multiword_types.h
### Writing source file test.c
### Writing header file test_private.h
.
### Writing header file rtmodel.h
### Writing source file test_data.c
### Writing source file ert_main.c
### TLC code generation complete.
### Generating TLC interface API.
......
### Creating data type transition file test_dt.h
### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: Arduino AVR v1.8.1 | gmake (64-bit Windows)
### Creating 'C:\Windows\System32\test_ert_rtw\test.mk' ...
### Building 'test': "C:\PROGRA~1\MATLAB\R2017b\bin\win64\gmake" -f test.mk all
C:\Windows\System32\test_ert_rtw>cd .
C:\Windows\System32\test_ert_rtw>if "" == "" ("C:\PROGRA~1\MATLAB\R2017b\bin\win64\gmake" -f test.mk all ) else ("C:\PROGRA~1\MATLAB\R2017b\bin\win64\gmake" -f test.mk )
gmake: test.mk: No such file or directory
gmake: *** No rule to make target `test.mk'. Stop.
C:\Windows\System32\test_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
C:\Windows\System32\test_ert_rtw>An_error_occurred_during_the_call_to_make
"An_error_occurred_during_the_call_to_make" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
### Creating HTML report file test_codegen_rpt.html
### Build procedure for model: 'test' aborted due to an error.
Error:Error(s) encountered while building "test":
### Failed to generate all binary outputs.**
How can I get it to work? Thank you.
Answers (1)
shahrzad hashemi
on 1 Sep 2018
0 votes
Hi I have the same problem as yours. Did you fix it?
Categories
Find more on Arduino Hardware in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!