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

3 ビュー (過去 30 日間)
Güven Seçkin
Güven Seçkin 2018 年 3 月 28 日
コメント済み: Naveed Mazhar 2019 年 8 月 31 日
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 Center および File ExchangeArduino Hardware についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by