Missing header file mw_stm32_utils.h when generating C code for STM32 nucleo board using embedded coder
Ältere Kommentare anzeigen
Hi,
I am generating code from a Simulink model using embedded coder support package for STM32 processors. The generated code contains a dependency on mw_stm32_utils.h, but this file does not exist in the generated output. Because of that I can't build the project.
The dependency appears in the generated model.h header file:
#include "mw_stm32_utils.h"
The only files generated were model.h, model.c and rtwtypes.h. So my question is were does this dependency come from?
I attached the generated source files to this post.
Thanks you.
Antworten (1)
Oliver Jaehrig
am 28 Nov. 2025
0 Stimmen
Try using packNGo to package all code to relocate it to a different environment:
3 Kommentare
Silvan
am 1 Dez. 2025
Oliver Jaehrig
am 3 Dez. 2025
Also when setting minimalHeaders to false?
If yes, please create a Technical Support case for your issue.
Yongshun
am 26 Dez. 2025
I found this header file here:
C:\ProgramData\MATLAB\SupportPackages\R2025a\toolbox\shared\supportpackages\stm32\include
add this directory to the include path should work.
Kategorien
Mehr zu STMicroelectronics Discovery Boards finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!