Arduino Simulink Connection Error "Failed to generate all binary outputs Error"

1 view (last 30 days)
While trying simple led blink example of arduino, I am getting this error. Matlab is already under folder so it can not be space problem in the path. Can anyone help me to fix this?
### Generating code into build folder: C:\Windows\System32\untitled_ert_rtw
### Invoking Target Language Compiler on untitled.rtw
### Using System Target File: C:\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 untitled_types.h
### Writing header file untitled.h
.
### Writing source file untitled.c
### Writing header file rtwtypes.h
### Writing header file multiword_types.h
### Writing header file untitled_private.h
### Writing source file untitled_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 untitled_dt.h
### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: Arduino AVR v1.8.1 | gmake (64-bit Windows)
### Creating 'C:\Windows\System32\untitled_ert_rtw\untitled.mk' ...
### Building 'untitled': "C:\MATLAB\R2017b\bin\win64\gmake" -f untitled.mk all
C:\Windows\System32\untitled_ert_rtw>cd .
C:\Windows\System32\untitled_ert_rtw>if "" == "" ("C:\MATLAB\R2017b\bin\win64\gmake" -f untitled.mk all ) else ("C:\MATLAB\R2017b\bin\win64\gmake" -f untitled.mk )
gmake: untitled.mk: No such file or directory
gmake: *** No rule to make target `untitled.mk'. Stop.
C:\Windows\System32\untitled_ert_rtw>echo The make command returned an error of 2
The make command returned an error of 2
C:\Windows\System32\untitled_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 untitled_codegen_rpt.html
.
.
.
### Build procedure for model: 'untitled' aborted due to an error.
Error(s) encountered while building "untitled":
### Failed to generate all binary outputs.

Answers (1)

Naveed Mazhar
Naveed Mazhar on 11 Aug 2018
I am facing the same problem and have spent 3 days but could not solve the issue. Please provide, if there is any solution. (I am using MATLAB R2017b)
  3 Comments
Kaouter Karboub
Kaouter Karboub on 31 Aug 2019
Can I ask you please Sir Naveed how did you checked that there s a space in your directory and how did you deleted it ?? am really grateful if you answer me, cause am struck in here 5 days ago :/
Naveed Mazhar
Naveed Mazhar on 31 Aug 2019
Sorry by Space I dont mean memory/volume. I mean spaces <> in two words of a folder name in directory path... Remove spaces and hopefully issue would be resolved.

Sign in to comment.

Categories

Find more on Arduino Hardware 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!