Cant Build Model due to Reason: "Code generation information file does not exist"

23 Ansichten (letzte 30 Tage)
Hey iam trying to deploy a Simulink Model to an Raspberry Pi 2B.
Whenever i try to deploy the Model, i get an Error that the requiered directory "rtw_continuous.h" does not exist.
I dont know how to include this properly, in the make-File the path to this specific libaray is given.
I tryed various solution, like uisng pack N go, but non of them worked as accpected.
I also tryed to implement it trough Custome Code and specify the directory in there as well (does not work).
Error executing command "touch -c /home/anonymus1/MATLAB_ws/R2023b/C/Users/anonymus/Desktop/Neue_Version/CONTROL_Record/CAN_Library/Control_SendData_Fast_ert_rtw/*.;
make MATLAB_ROOT=%MATLAB_ROOT% ALT_MATLAB_ROOT=%ALT_MATLAB_ROOT% MATLAB_BIN=%MATLAB_BIN% ALT_MATLAB_BIN=%ALT_MATLAB_BIN% -j$(($(nproc)+1)) -Otarget -f Control_SendData_Fast.mk all MATLAB_WORKSPACE="/home/anonymus1/MATLAB_ws/R2023b" LINUX_TARGET_LIBS_MACRO=""
% -C /home/anonymus1/MATLAB_ws/R2023b/C/Users/anonymus/Desktop/Neue_Version/CONTROL_Record/CAN_Library/Control_SendData_Fast_ert_rtw LC_ALL=C". Details:
STDERR: In file included from /home/anonymus1/MATLAB_ws/R2023b/C/Users/anonymus/Desktop/Neue_Version/CONTROL_Record/CAN_Library/Control_SendData_Fast_ert_rtw/Control_SendData_Fast.c:20:
/home/anonymus1/MATLAB_ws/R2023b/C/Users/anonymus/Desktop/Neue_Version/CONTROL_Record/CAN_Library/Control_SendData_Fast_ert_rtw/Control_SendData_Fast.h:25:10: fatal error: rtw_continuous.h: No such file or directory
25 | #include "rtw_continuous.h"
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Control_SendData_Fast.mk:429: Control_SendData_Fast.c.o] Error 1
Currently iam using the following Settings to deploy my code.
I would be super thankfull for any advices, even though my explenation seems a bit dizzy.

Antworten (1)

Abhishek Kumar Singh
Abhishek Kumar Singh am 3 Apr. 2024
Hi Marcel,
I guess you are having issues while deploying a Simulink Model to a Raspberry Pi device due to the missing "rtw_continuous.h" header file.
The error you're facing with "rtw_continuous.h" not being found typically occurs when your model configuration is set to support continuous time, and the generated code requires this file but cannot locate it. This file is included by the Embedded Coder when your model configuration selects the parameter Support: continuous time, and the code does not already include "simstruc.h".
Hence, most probably, the configuration of your model might be leading to this issue. Without more detailed information about your model and its settings, it's challenging to provide a precise solution.
For configuring your Simulink Model for code generation specifically for Raspberry Pi boards, refer to the following documentation section: Getting Started with Raspberry Pi Hardware. This section includes a task that guides you through configuring your Simulink model for code generation.
Additionally, utilizing a preconfigured template provided in the documentation could help mitigate the issues you're experiencing by ensuring your model is set up correctly from the start (refer to the same documentation page).
An alternative, albeit less elegant, method you might consider is to manually locate the header file. The "rtw_continuous.h" header file is located in the 'include' directory of Simulink. To manually locate this file, you can use the following commands in the MATLAB Command Window:
cd (matlabroot)
cd simulink/include/
After locating the file, manually paste it into the location where the Coder is expecting to find it, as indicated in the error message you've shared.
Hope it helps!

Kategorien

Mehr zu Raspberry Pi Hardware finden Sie in Help Center und File Exchange

Produkte


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by