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

조회 수: 7 (최근 30일)
娉
2023년 7월 15일
답변: MATLAB_atian 2023년 12월 4일
  댓글 수: 2
娉
2023년 7월 16일
通过在设置里自己添加头文件路径解决了这个问题。
Jun Gao
Jun Gao 2023년 7월 20일
你好, 請問如何自己添加头文件路径呢? 在哪裏設置?

댓글을 달려면 로그인하십시오.

답변 (2개)

MATLAB_atian
MATLAB_atian 2023년 12월 3일
麻烦问下这个问题最后怎么解决的

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

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!