Error while compiling code with embedded coder support package for STM32

17 次查看(过去 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?

采纳的回答

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 CenterFile 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!

Translated by