'Failed to generate all binary outputs' Error- Matlab R2019b-Simulink

I am a student in 9th grade participating in Best Robotics, and I came across this error message when attempting to upload code (from Simulink) to the team robot (VEX-based). There weren't any big changes to the code scince the last upload. After some quick troubleshooting, I went online looking for an answer. I found nothing, and that's why I'm here. Later, with my instructor, we tested other versions along with older code which worked as well. Same error. We tryed a different computer: error. We tryed a different cortex (the microcontroller for our robot): error. This has been keeping us from making any improvements to the code for our upcoming competition. Here is the error message in full*:
*The '...Build procedure for model...' part is not stated twice in the code; just overlapping screenshots.
I would greatly appriciate any help on solving the error. Thank you!
error a.PNG
error b.PNG

 Accepted Answer

There is a directory name conflict in there. One of the .c files is tried to be located in the C:\ directory but it does not exist there as it was written into a D:\ directory .
The problem might possibly have been at the time of generation of the .mk file, as I do not seem to find an explicit reference to the file name in what was output. (Unfortunately when pictures of text are posted instead of the text itself, it is not possible to search the text.)

3 Comments

Thank you for the response! I will try moving the folder back to the other hard drive (the first drive was nearly full). I will give an update later today of whether this worked.
You could also stay on the D: drive but delete the __ert_rtw directory. This will force Embedded Coder to regenerate the .mk file and it should then have the proper references to the D drive.
Thank you sirs! That did seem to be the problem, but we had trouble fixing it. We ended up copying the code into a blank model to force it to remake the files correctly, much like Mark said. It worked! Thank you both so much.

Sign in to comment.

More Answers (0)

Categories

Products

Release

R2019b

Community Treasure Hunt

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

Start Hunting!