Borrar filtros
Borrar filtros

How to can i fix "Failed to generate all binary outputs" while building a c code for software in the loop block ?

3 visualizaciones (últimos 30 días)
hello everyone
i encountered this error while trying to generate block for software in the loop in the simulink to target a embedded coder
thank you .
### Generating
code into build folder: C:\Users\said\Desktop\testsil\sil_sta\Vsc1_ert_rtw
### Invoking Target Language Compiler on Vsc1.rtw
### Using System Target File: C:\Program Files (x86)\MATLAB\R2014b\rtw\c\ert\ert.tlc
### Loading TLC function libraries
### Initial pass through model to cache user defined code
### Caching model source code
### Writing source file Vsc1.c
### Writing header file Vsc1_private.h
### Writing header file Vsc1.h
### Writing header file Vsc1_types.h
### Writing header file rtwtypes.h
### Writing source file Vsc1_data.c
### Writing header file rtmodel.h
### Writing source file ert_main.c
### TLC code generation complete.
### Evaluating PostCodeGenCommand specified in the model
### Using toolchain: GNU Tools for ARM Embedded Processors v4.7 | gmake (32-bit Windows)
### 'C:\Users\said\Desktop\testsil\sil_sta\Vsc1_ert_rtw\Vsc1.mk' is up to date
### Using toolchain: GNU Tools for ARM Embedded Processors v4.7 | gmake (32-bit Windows)
### 'C:\Users\said\Desktop\testsil\sil_sta\Vsc1_ert_rtw\Vsc1.mk' is up to date
### Building 'Vsc1': C:\Program Files (x86)\MATLAB\R2014b\bin\win32\gmake -f Vsc1.mk buildobj
C:\Users\said\Desktop\testsil\sil_sta\Vsc1_ert_rtw>cd .
\MATLAB\R2014b\bin\win32\gmake was unexpected at this time.
C:\Users\said\Desktop\testsil\sil_sta\Vsc1_ert_rtw>if "buildobj"=="" (C:\Program Files (x86)\MATLAB\R2014b\bin\win32\gmake -f Vsc1.mk all) else (C:\Program Files (x86)\MATLAB\R2014b\bin\win32\gmake -f Vsc1.mk buildobj)
end
[Warning: The following error was caught while executing 'onCleanup' class
destructor:
Invalid or deleted object.]
[Warning: The following error was caught while executing 'onCleanup' class
destructor:
Invalid or deleted object.]

Build procedure for model: 'Vsc1' aborted due to an error.

Error(s) encountered while building model "Vsc1":
### Failed to generate all binary outputs.
Component: Simulink | Category: Build error

Respuesta aceptada

Walter Roberson
Walter Roberson el 14 de Abr. de 2020
\MATLAB\R2014b\bin\win32\gmake was unexpected at this time.
C:\Users\said\Desktop\testsil\sil_sta\Vsc1_ert_rtw>if "buildobj"=="" (C:\Program Files (x86)\MATLAB\R2014b\bin\win32\gmake -f Vsc1.mk all) else (C:\Program Files (x86)\MATLAB\R2014b\bin\win32\gmake -f Vsc1.mk buildobj)
Notice the complaint was about a name starting with \MATLAB .
Notice that the command generated has
(C:\Program Files (x86)\MATLAB\R2014b\bin\win32\gmake -f Vsc1.mk all)
and observe there is space (x86) right before that.
What is happening is in the time frame you are using, Simulink related software often broken when it was used with directories that had spaces or characters that were not English letters or the digits.
If you were to install into a directory that did not have a space in the name, such as directly to C:\MATLAB instead of to C:\Program Files (x86)\MATLAB then it would probably start working.

Más respuestas (0)

Productos


Versión

R2014b

Community Treasure Hunt

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

Start Hunting!

Translated by