Failed to generate all binary outputs - Works externally but will not deploy

68 views (last 30 days)
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.
Error(s) encountered while building "Broken": ### Failed to generate all binary outputs.
Component:Simulink | Category:Block diagram error
  1 Comment
Daniel Gelman
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?

Sign in to comment.

Accepted Answer

Benjamin Marshall
Benjamin Marshall on 6 Aug 2019
If you're having this problem, there are multiple things which could be causing them, I would recommend checking these other posts in the following order:
  1. Check that your configuration is set properly
2. Check that you have selected an appropriate solver
I can't find the exact community post for this, however try each solver one by one to eliminate that as a variable.
3. Check there are no spaces in your file naming structure
This can take a long time based on the different methods for solving it, however this was what I have seen solve the issue for the majority of people with the same issue.
4. If you're still having trouble try the following link, I didn't personally need it but it may be a good place to start if you're still having trouble.

More Answers (1)

Jeanyee. S
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!

Community Treasure Hunt

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

Start Hunting!