Keil报错:cannot open source input file "core_cmInstr.h" 解决办法

简介: Keil报错:cannot open source input file "core_cmInstr.h" 解决办法

前言

前几天在面包板社区申请了一块uFun开发板,昨天刚到手,在烧录Demo程序的时候遇到一个问题,就是Keil打开工程,编译,报很多错误 cannot open source input file"core_cmInstr.h,然后搜索了一些资料,最后解决了这个小问题,以下是解决办法。


Demo程序文件夹里有两个Keil的工程文件,一个是Keil4对应的,一个是Keil5的,可以说uFun还是考虑的挺周到的。

640.jpg


编译报错,cannot open source input file "core_cmInstr.h,找不到这个头文件,38个Error都是这个问题。

640.jpg


从文件名来看,这个头文件应该是内核相关的文件,于是在电脑本地搜索这个文件,终于在Keil的安装目录下搜索到了这个文件,我的是在 E:\Keil_v5\ARM\Pack\ARM\CMSIS\4.3.0\CMSIS\Include这个文件夹下:

640.jpg


知道了文件在哪里,我们直接手动指定头文件路径不就行了:

640.jpg


好了,终于下载成功了。打开串口助手,波特率115200,可以看到程序启动的一些LOG

目录
相关文章
|
8月前
|
安全 Windows
安装MyEclipse遇到错误提示 Failed to find a Main Class in “C:Windows\Temp\“时的解决方案
安装MyEclipse遇到错误提示 Failed to find a Main Class in “C:Windows\Temp\“时的解决方案
113 1
打印文档即提示Print driver host for 32bit applications
主机win7 32位系统,打印一切正常,共享打印机后,客户机为win7 64位系统连接该共享打印机,连接成功,驱动安装正常,x64驱动,客户机打印测试页正常,但打印文档即提示Print driver host for 32bit applications。
7731 0
打印文档即提示Print driver host for 32bit applications
|
4月前
|
Python
8-1|pyinstaller打包报错 with open(path, 'rb') as stream: FileNotFoundError: [Errno 2] No such file o 原创
8-1|pyinstaller打包报错 with open(path, 'rb') as stream: FileNotFoundError: [Errno 2] No such file o 原创
|
7月前
|
Windows
Qtdesigner报错:This application failed to stat could not find or load the Qt platform plugin “windows“
Qtdesigner报错:This application failed to stat could not find or load the Qt platform plugin “windows“
|
8月前
报错:Keil5执行文件之后显示Target not created
报错:Keil5执行文件之后显示Target not created
1494 0
|
编译器 Go 开发工具
JetBrains GoLand 以debug运行Go程序时出现could not launch process: decoding dwarf section info at offset 0x0: too short报错之保姆级别解决方案
JetBrains GoLand 以debug运行Go程序时出现could not launch process: decoding dwarf section info at offset 0x0: too short报错之保姆级别解决方案
354 0
|
Java
IDEA 启动服务报错:Command line is too long. Shorten the command line via JAR manifest or via a classpath file and rerun 解决方案
IDEA 启动服务报错:Command line is too long. Shorten the command line via JAR manifest or via a classpath file and rerun 解决方案
2538 1
|
PyTorch 算法框架/工具 C++
导入pytorch报错:Redistributable is not installed...安装vc_redist.x64.exe报错:Error 1402:Could not open key..
导入pytorch报错:Redistributable is not installed...安装vc_redist.x64.exe报错:Error 1402:Could not open key..
导入pytorch报错:Redistributable is not installed...安装vc_redist.x64.exe报错:Error 1402:Could not open key..
运行QtDesigner.exe报错:it could not find or load the Qt platform plugin “windows“
运行QtDesigner.exe报错:it could not find or load the Qt platform plugin “windows“
运行QtDesigner.exe报错:it could not find or load the Qt platform plugin “windows“
|
内存技术 芯片
MDK st-link下载STM32程序出现Internal command error和Error:Flash download failed. Target DLL
MDK st-link下载STM32程序出现Internal command error和Error:Flash download failed. Target DLL   是因为目标板的芯片处于休眠的状态,在尝试连接目标板时候也会出现报错Internal command ...
3753 0