Missing header file mw_stm32_utils.h when generating C code for STM32 nucleo board using embedded coder

28 ビュー (過去 30 日間)
Silvan
Silvan 2025 年 11 月 26 日 19:59
コメント済み: Oliver Jaehrig 2025 年 12 月 3 日 8:16
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
Oliver Jaehrig 2025 年 11 月 28 日 6:55
Try using packNGo to package all code to relocate it to a different environment:
  2 件のコメント
Silvan
Silvan 2025 年 12 月 1 日 12:28
Unfortunately, the dependency persists even when using packNGo or the 'Package code and artifacts' option. I tested this with different compilers and both C and C++, but the issue remains.
Oliver Jaehrig
Oliver Jaehrig 2025 年 12 月 3 日 8:16
Also when setting minimalHeaders to false?
If yes, please create a Technical Support case for your issue.

サインインしてコメントする。

製品


リリース

R2025b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by