Keil报错:cannot open source input file “core_cmInstr.h“
Keil报错:cannot open source input file “core_cmInstr.h”使用Keil创建GD32工程后编译,会出现错误:error:#5: cannot open source input file “core_cmInstr.h”error:#5: cannot open source input file “core_cmFunc.h”此错误为缺少“core_
·
使用Keil创建GD32工程后编译,会出现错误:
error: #5: cannot open source input file “core_cmInstr.h”
error: #5: cannot open source input file “core_cmFunc.h”
此错误为缺少“core_cmInstr.h”、“core_cmFunc.h”
这个错误是因为keil版本的原因导致。
总结网友提供解决方法如下:
-
添加Keil软件安装路径下的CMSIS\Include到工程的Include Parhs中,我的路径如下:
C:\Keil_v5_ARM\ARM\PACK\ARM\CMSIS\5.4.0\CMSIS\Include
结果: 未解决。我的软件安装路径下没有这两个头文件。
-
在软件安装路径 C:\Keil_v5_ARM\ 下搜索这两个文件,并手动将这两个文件添加到所需要的工程下。
结果: 未解决。找不到这两个文件。
经过反复安装寻找各个版本,终于找到了这两个头文件,下载地址在这里。
链接:https://pan.baidu.com/s/1JA1WtgMYi4s8K7TZVFV9jA
提取码:1n86
请将这两个头文件下载后,复制到所需工程中。即可完美解决。
希望能帮到您。
更多推荐
已为社区贡献1条内容
所有评论(0)