Error while compiling code with embedded coder support package for STM32

17 ビュー (過去 30 日間)
Sanath
Sanath 2024 年 4 月 21 日
コメント済み: Sanath 2024 年 4 月 22 日
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?

採用された回答

Rishi
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!
  1 件のコメント
Sanath
Sanath 2024 年 4 月 22 日
Hello @Rishi, Thank you so much! It worked like a charm. May i also know what could be causing this issue and how it could be solved? when you copy the model, the configuration needs to be done for the model again. Normally, it is no problem but what if it keeps on appearing after a certain amount of runs?
Thank you for your resolution nevertheless.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by