cancel
Showing results for 
Search instead for 
Did you mean: 

Simulink error for programming ST Nucleo board

hsafamehr
Associate II

Hi,

I want to program my STM32H753ZI Nucleo board with Simulink. I successfully programmed it to blink an LED. However, I get the following error when I try to enable a timer (for PWM, or Encoder).

 

C:/ProgramData/MATLAB/SupportPackages/R2023b/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

 

I have tried this with both CubeMx 6.4 and 6.10 (Matlab has recommended to use CubeMx 6.4.).

I have also tried the STM32F446RE Nucleo board and the same error emerged.

Any suggestions to solve this problem are highly appreciated.

 

Thanks

12 REPLIES 12

Oh okay, will have another scan through each of the folders in the path and see if I spot anything out of place!

 

I'll update if you have saved my life once I've done it

I just realised after all this time that your problem was slightly different from the initial that started this thread, I have the lack of "rtiostream.h" issue originally presented by hsafamehr.

 

Sorry for wasting your time on this matter, hopefully I can find someone as helpful with you that has experience with my issue.

Hi there,

 

I'm having this issue also. When I manually added the header files requested to the path from another are in MATLAB, it just led to further errors rising due to a lack of functions being defined in this alternate header file.

 

Also, should I use the latest version of CubeMX, Matlab gets quite unhappy during ths installation process and breaks stuff further.

 

Do you have any advice?