Failed to generate all binary outputs - Works externally but will not deploy
조회 수: 12 (최근 30일)
이전 댓글 표시
I've recently built a simulink model that I want to eventually deploy onto an Arduino. Using sensor data I want to make a reaction wheel to correct for heading changes on a high altitude balloon. When I run my model externally the model runs fine, and the data is displayed on the scope. However when I click "deploy to hardware" I get the attached error message. I have already tried:
- Removing space in folder names
- Setting "configuration parameters -> hardware implentation" to Arduino Uno
- Changing the solver
- Reinstalling the Arduino support package
Error (reduced from full display):
IC:/PROGRA~3/MATLAB/SUPPOR~1/R2019a/3P778C~1.INS/ARDUIN~1.INS/ARDUIN~1.1/hardware/arduino/avr/LIBRAR~1/Wire/src/utility -o rtiostream_interface.o C:/PROGRA~1/MATLAB/R2019a/rtw/c/src/ext_mode/common/rtiostream_interface.c C:/PROGRA~1/MATLAB/R2019a/rtw/c/src/ext_mode/common/rtiostream_interface.c:26:24: fatal error: rtiostream.h: No such file or directory #include "rtiostream.h" ^ compilation terminated. gmake: *** [rtiostream_interface.o] Error 1 C:\Users\skroi\Desktop\SentIntoSpace\Placement\RealReactionWheel\BuildFolder\Broken_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2 C:\Users\skroi\Desktop\SentIntoSpace\Placement\RealReactionWheel\BuildFolder\Broken_ert_rtw>exit 1 ### Creating HTML report file Broken_codegen_rpt.html
### Build procedure for model: 'Broken' aborted due to an error.
Component:Simulink | Category:Block diagram error
댓글 수: 1
Daniel Gelman
2020년 8월 25일
I am having the same problem.
My filepath has no spaces, I have tried all the solvers and installed MATLAB several times. I still cant deploy my model (which contacts an s-function). External mode works just fine.
I am getting prompted with the same "fatal error: rtiostream.h: No such file or directory"
I tried what Benjamin tried to do and nothing. What worked for you?
채택된 답변
추가 답변 (1개)
Jeanyee. S
2021년 11월 1일
Hi I just say thanks because I met the very similar problem when running a programme in raspberry Pi.
Running in external mode is OK and then the error happend
/home/pi/MATLAB_ws/R2021a/C/Program_Files/MATLAB/R2021a/rtw/c/src/ext_mode/common/rtiostream_interface.c:26:10: fatal error: rtiostream.h: No such file or directory
I tried to set the model configuaration and turn the external configuration off (active another configuration)
then it works sweetly!
Thank you very much!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Arduino Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!