Error in Embedded Code Generation: Unable to Run 'rtwmakecfg' File

I encountered an issue with embedded code generation in MATLAB R2023b. The specific error message is:
Error using coder.internal.runMakeCfgFiles
Due to the error 'Output argument "makeInfo" (and possibly others) not assigned a value in the execution with "rtwmakecfg" function.', the directory
'C:\ProgramFiles\MATLAB\R2023b\toolbox\slrealtime\simulink\blocks' cannot be run with the 'rtwmakecfg' file.
In the code generation settings, I have already selected the 'ert.tlc' configuration.
I appreciate any help or guidance can provide. Thank you in advance for your assistance!

2 comentarios

I can't see end of the error message. Do you have Simulink Real-Time blocks in your model? If so, you'll need to use slrealtime.tlc rather than ert.tlc.
Error using coder.internal.runMakeCfgFiles
Due to the error 'Output argument "makeInfo" (and possibly others) not assigned a value in the execution with "rtwmakecfg" function.', the directory
'C:\ProgramFiles\MATLAB\R2023b\toolbox\slrealtime\simulink\blocks' cannot be run with the 'rtwmakecfg' file.

Iniciar sesión para comentar.

Respuestas (1)

Gustavo
Gustavo el 28 de Dic. de 2023
I have seen this happen when you chose a library block that belongs to a target different from the one you are using. In my case, my target was an Arduino but I used a library for a real time card

Categorías

Más información sobre Deployment, Integration, and Supported Hardware en Centro de ayuda y File Exchange.

Productos

Versión

R2023b

Preguntada:

WPS
el 28 de Nov. de 2023

Respondida:

el 28 de Dic. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by