Error while compiling code with embedded coder support package for STM32
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Sanath
el 21 de Abr. de 2024
Comentada: Sanath
el 22 de Abr. de 2024
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 comentarios
Respuesta aceptada
Rishi
el 21 de Abr. de 2024
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!
Más respuestas (0)
Ver también
Categorías
Más información sobre Deployment, Integration, and Supported Hardware en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!