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

2 次查看(过去 30 天)
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.

回答(1 个)

Naveed Mazhar
Naveed Mazhar 2018-8-11
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 个评论
Kaouter Karboub
Kaouter Karboub 2019-8-31
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 2019-8-31
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Arduino Hardware 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by