使用“Embedded Coder”生成ST​M32代码,编译时遇​到“fatal error: stm32g4xx_hal.h: No such file or directory”​错误,无法正常编译完​模型,请问这是什么原​因造成的?

2 Kommentare

通过在设置里自己添加头文件路径解决了这个问题。
你好, 請問如何自己添加头文件路径呢? 在哪裏設置?

Melden Sie sich an, um zu kommentieren.

Antworten (2)

MATLAB_atian
MATLAB_atian am 4 Dez. 2023

0 Stimmen

我和你一样的问题(同时,我在命令界面报了:Warning: Name is nonexistent or not a directory:)
把set path路径修改了下,故障消失了。

Kategorien

Produkte

Version

R2023a

Gefragt:

娉
am 15 Jul. 2023

Beantwortet:

am 4 Dez. 2023

Community Treasure Hunt

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

Start Hunting!