Error while compiling code with embedded coder support package for STM32
13 ビュー (過去 30 日間)
古いコメントを表示
Hello, As part of my master thesis I created a closed loop motor control system with acceleration sensor as input and was in the phase of testing when suddenly i started getting this error below
DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 @Motor_initialization_comp.rsp -o "rtiostream_serial.o" "C:/ProgramData/MATLAB/SupportPackages/R2024a/toolbox/shared/supportpackages/stm32/src/rtiostream_serial.c" C:/ProgramData/MATLAB/SupportPackages/R2024a/toolbox/shared/supportpackages/stm32/src/rtiostream_serial.c:10:10: fatal error: rtiostream.h: No such file or directory 10 | #include "rtiostream.h" | ^~~~~~~~~~~~~~ compilation terminated. gmake: *** [rtiostream_serial.o] Error 1 C:\Users\Sanath\Desktop\master thesis\master thesis model\Motor_initialization_ert_rtw>echo The make command returned an error of 2 The make command returned an error of 2 C:\Users\Sanath\Desktop\master thesis\master thesis model\Motor_initialization_ert_rtw>exit /B 1 ### Build procedure for Motor_initialization aborted due to an error.
I have never faced this error and it suddenly started to appear. Moments ago i had compiled a code and it did not have any issues, can anyone suggest how to solve this issue?
0 件のコメント
採用された回答
Rishi
2024 年 4 月 21 日
Hello Sanath,
From the error message it looks like the file 'rtiostream.h' is not found. This can sometimes happen due to model caching on the host. One workaround you can try is copying the algorithm into a new model. This should solve this issue.
Hope this helps!
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Deployment, Integration, and Supported Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!