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