Missing header file mw_stm32_utils.h when generating C code for STM32 nucleo board using embedded coder
이전 댓글 표시
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.
답변 (1개)
Oliver Jaehrig
2025년 11월 28일
0 개 추천
Try using packNGo to package all code to relocate it to a different environment:
댓글 수: 3
Silvan
2025년 12월 1일
Oliver Jaehrig
2025년 12월 3일
Also when setting minimalHeaders to false?
If yes, please create a Technical Support case for your issue.
Yongshun
2025년 12월 26일
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.
카테고리
도움말 센터 및 File Exchange에서 STMicroelectronics Discovery Boards에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!