Failed to generate all binary outputs - Works externally but will not deploy
68 views (last 30 days)
Show older comments
Benjamin Marshall
on 2 Aug 2019
Answered: Jeanyee. S
on 1 Nov 2021
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 Comment
Daniel Gelman
on 25 Aug 2020
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?
Accepted Answer
More Answers (1)
Jeanyee. S
on 1 Nov 2021
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 Comments
See Also
Categories
Find more on Setup and Configuration 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!